Last Updated: February 07, 2017
· dfang

fatal: remote error: You can't push to git

last time , when i git push my own github repo, i got this error

fatal: remote error:    You can't push to git://   Use

after some googling and reading github help, i found this:

that is URL like git:// is read-only, SSH URL like and HTTPS URL like are writeable.

so the solution is pretty simple:

git remote rm origin
git remote add origin
git push origin master

Hope it helps !

6 Responses
Add your response

You do know that GitHub provides all this URLs nicely in the sidebar, right?

over 1 year ago ·

@mrfoto, yes i see the repo url is when i not loged in, and when logged in, maybe i cloned the repo using git://, not copied but by memory, haha

over 1 year ago ·

Helped me! I forgot that git:// is read-only, I must have not been logged in when grabbing that URL.

over 1 year ago ·
over 1 year ago ·

thx, good to know!

over 1 year ago ·


over 1 year ago ·