Last active
November 29, 2019 20:54
-
-
Save jghorton14/60555d8542c8f0161b0ee1bb3167751a to your computer and use it in GitHub Desktop.
Create new github repo from cmd line and push code to github
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
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}' | |
echo "# REPO" >> README.md | |
git init | |
git add . | |
git commit -m "first commit" | |
git remote add origin https://github.com/USER/REPO.git | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment