Last active
August 22, 2016 19:08
-
-
Save matthamil/0e1e77a9fb0ee9b1fe2640b8beb3e779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
printf "🤔 Repo Name: " | |
read name | |
printf "✏️ $name Description: " | |
read description | |
printf "✨ Creating repo: $name\n" | |
curl -u matthamil https://api.github.com/user/repos -d '{ "name": "'"$name"'", | |
"description": "'"$description"'" }' | |
git init | |
touch .gitignore | |
echo "bower_components node_modules" >> .gitignore | |
git add . | |
git commit -m "first commit" | |
git remote add origin "[email protected]:matthamil/${name}.git" | |
git push -u origin master | |
printf "👍 Done!\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment