Skip to content

Instantly share code, notes, and snippets.

@willwright82
Created April 23, 2017 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willwright82/764640fa3322bd13639c0155c47c460c to your computer and use it in GitHub Desktop.
Save willwright82/764640fa3322bd13639c0155c47c460c to your computer and use it in GitHub Desktop.
Create a repo using Git API
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
# Remember replace USER with your username and REPO with your repository/application name!
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