Created
September 2, 2018 02:47
-
-
Save davidicus/dd7b2829d48243bdef3ae50bc6c3c65c to your computer and use it in GitHub Desktop.
curl command to create a remote repo via github api
This file contains hidden or 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
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