public
Created

Create a new GitHub repo

  • Download Gist
create-repo.sh
Shell
1 2 3 4 5
#!/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 git@github.com:yefim323/$1.git

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.