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

Yuriy Lisovskiy picture Yuriy Lisovskiy · Mar 11, 2017 · Viewed 16.4k times · Source

Please, help me, how can I fix this error ?

$git push origin dev
fatal: remote error:
 You can't push to git://github.com//name_of_repo.git
 Use https:://github.com//name_of_repo.git

Answer

ThiefMaster picture ThiefMaster · Mar 11, 2017

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>