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 https://github.com/seankross/womp.git
git push -u origin master
Push an existing repository from the command line
git remote add origin https://github.com/seankross/womp.git
git push -u origin master
The remote used is a SSH one and not HTTPS, can change it easily though. If using SSH, it requires SSH keys (and it won't ask for password, so that's useful)
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPONAME"}'
git remote add origin git@github.com:USER/REPONAME.git
git push origin master