Created
November 18, 2015 01:18
-
-
Save adampats/1c1257d58c7c753213a3 to your computer and use it in GitHub Desktop.
Create GitHub repo from command line and push
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
# Personal Access Token required - go here: https://github.com/settings/tokens | |
repo="newrepo" | |
gh_user="adampats" | |
gh_token="mytoken" | |
curl -u "$gh_user:$gh_token" https://api.github.com/user/repos -d '{"name":"'$repo'"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment