Skip to content

Instantly share code, notes, and snippets.

@jclosure
Last active September 13, 2016 07:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jclosure/4562491 to your computer and use it in GitHub Desktop.
Save jclosure/4562491 to your computer and use it in GitHub Desktop.
create github repo from cli
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 git@github.com: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