Git Bash: remote error: You can't push to git://github.com/

Use an HTTPS or SSH URL. Instead of git://github.com/user/repo.git use one of these:

You can change it in your clone like this:

git remote set-url origin <THE-URL-HERE>

I had the same error, and this worked for me, which I found here: https://coderwall.com/p/7begkw/fatal-remote-error-you-can-t-push-to-git

git remote rm origin 
git remote add origin [email protected]:user/repo.git
git push origin master

The error message from github is quite misleading. It suggests to use https:// even when a user can much easier authenticate via ssh keys. The (hopefully superior) alternative with ssh looks like this:

git remote set-url origin ssh://[email protected]/user/repo.git

Tags:

Git

Git Push