Last active
September 13, 2016 07:31
-
-
Save jclosure/4562491 to your computer and use it in GitHub Desktop.
create github repo from cli
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
CLI commands for github API v3 (replace all CAPS keywords): | |
git init | |
git add . | |
git commit -am "initial commit" | |
curl -u 'USER:PASS' https://api.github.com/user/repos -d '{"name":"REPO"}' | |
git remote add origin [email protected]:USER/REPO.git | |
git push origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment