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
Use an HTTPS or SSH URL. Instead of git://github.com/user/repo.git
use one of these:
https://github.com/user/repo.git
git@github.com:user/repo.git
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 git@github.com: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://git@github.com/user/repo.git
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.