Skip to content

Instantly share code, notes, and snippets.

@matthamil
Last active August 22, 2016 19:08
Show Gist options
  • Save matthamil/0e1e77a9fb0ee9b1fe2640b8beb3e779 to your computer and use it in GitHub Desktop.
Save matthamil/0e1e77a9fb0ee9b1fe2640b8beb3e779 to your computer and use it in GitHub Desktop.
#!/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