Created
May 4, 2012 06:10
-
-
Save yefim/2592462 to your computer and use it in GitHub Desktop.
Create a new GitHub repo
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 | |
read -s -p "GitHub password: " pass | |
# I assume the GitHub API and authentication works because I don't want to parse JSON | |
curl -u "yefim323:$pass" https://api.github.com/user/repos -d "{\"name\":\"$1\"}" > /dev/null | |
git remote add origin [email protected]:yefim323/$1.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment