Skip to content

Instantly share code, notes, and snippets.

@davidicus
Created September 2, 2018 02:47
Show Gist options
  • Save davidicus/dd7b2829d48243bdef3ae50bc6c3c65c to your computer and use it in GitHub Desktop.
Save davidicus/dd7b2829d48243bdef3ae50bc6c3c65c to your computer and use it in GitHub Desktop.
curl command to create a remote repo via github 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 [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