I kept having problem with github these days, i created a new repository on github, then from local machine I tried to push my code to github:
git remote add origin g
Look:
fatal: remote origin already exists
You already have a remote named origin, and it's still using the old, invalid URL. Open up .git/config and change the URL for the origin remote, or use the set-url subcommand for git remote:
origin
.git/config
set-url
git remote
$ git remote set-url origin git@github.com:tmi/logger.git