I may be missing something, but I’m sure that I’ve checked everything,
I forked a repo and cloned it on my system,
made some changes
after commiting
did git push origin master
it says
fatal: remote error:
You can't push to git://github.com/my_username/my_repo.git
Use git@github.com:my_username/my_repo.git
Am I missing something?
then I tried
git remote add origin https://github.com/my_username/my_repo.git
it returned
fatal: remote origin already exists.
I dont understand why this is hapenning, pls help
The url with
git:// Only gives read only access as mentioned in the side too..
Whereas,
gives read and write access as mentioned in site
Though,
https://github.com/my_username/my_repo.gitalso has read and write access but it was not working in your case because you trying to create a new remote with the same name instead of resetting it. The correct syntax as mentioned wasgit remote set-url origin git@github.com:my_username/my_repo.gitAnd
would also work.