####Replace USER with username and REPO with the name of the repository/application.
git init
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
git add whatever
git commit -a
To remove origin: git remote rm origin
git remote add origin git@github.com:USER/REPO.git
git push origin master