Last active
April 15, 2021 09:41
-
-
Save extrimua/b62a658d25ee5431b59af3f00bae984d to your computer and use it in GitHub Desktop.
Create github repository from command line
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 '<username>' https://api.github.com/user/repos -d '{"name": "<reponame>"}' | |
| touch README.md | |
| git init | |
| git add . | |
| git commit -m "init commit" | |
| git remote add origin [email protected]:<username>/<reponame>.git | |
| git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment