##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
The offical GitHub CLI is now out of beta: https://github.com/cli/cli
Create a repo with
gh repo create [<name>]
Docs: https://cli.github.com/manual/gh_repo_create