##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 git@github.com:alexpchin/<reponame>.git
git push -u origin master
##Push an existing repository from the command line
git remote add origin git@github.com:alexpchin/<reponame>.git
git push -u origin master
You don't even need to login / authorise every single time, just set up SSH key on computer, then do
gh repo create nameofrepo
then go to the url it generates and it automatically tells you all the command lines to do, but as you mentioned git add . is the only thing to change really.