반응형
fatal: remote error: You can't push to git
GITHUB
last time , when i git push my own github repo, i got this error
fatal: remote error: You can't push to git://github.com/user/repo.git Use https://github.com/user/repo.git
after some googling and reading github help, i found this:
https://help.github.com/articles/pushing-to-a-remote#what-can-i-push-to
that is URL like git://github.com/user/repo.git is read-only, SSH URL like git@github.com:user/repo.git and HTTPS URL like https://github.com/user/repo.git are writeable.
so the solution is pretty simple:
git remote rm origin
git remote add origin git@github.com:user/repo.git
git push origin master
Hope it helps !
last time , when i git push my own github repo, i got this error
fatal: remote error: You can't push to git://github.com/user/repo.git Use https://github.com/user/repo.git
after some googling and reading github help, i found this:
https://help.github.com/articles/pushing-to-a-remote#what-can-i-push-to
that is URL like git://github.com/user/repo.git is read-only, SSH URL like git@github.com:user/repo.git and HTTPS URL like https://github.com/user/repo.git are writeable.
so the solution is pretty simple:
git remote rm origin
git remote add origin git@github.com:user/repo.git
git push origin master
Hope it helps !
반응형
'CI CD > Git:GitHub' 카테고리의 다른 글
How to disable automatic startup (0) | 2020.10.31 |
---|---|
git force (0) | 2019.09.24 |
[깃허브(Github)] 20. 깃허브 블로그 만들기(3) (0) | 2018.09.29 |
[깃허브(Github)] 20. 깃허브 블로그 만들기(2) (0) | 2018.09.29 |
[깃허브(Github)] 20. 깃허브 블로그 만들기(1) (0) | 2018.09.29 |