##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:alexpchin/<reponame>.git
git push -u origin master
##Push an existing repository from the command line
git remote add origin [email protected]:alexpchin/<reponame>.git
git push -u origin master
I still have some issues when using this command on Linux so I just switched to using the GitHub CLI package (
apt install gh
) andgh repo create <newrepo> --public
.gh auth login
has a quick little login utility.