I am working with a ruby on rails application and I am trying to sync a fork. It is worth mentioning that I am also on a Mac. I committed the following action:
$ git remote -v
to get a view of my local repository. I messed up when trying to go upstream
:
$ git remote add upstream https://github.com/foo/repo.git
When I should have capitalized Foo:
$ git remote add upstream https://github.com/Foo/repos.git
The question is how do I remove the upstream
because every time I try and change this it comes back with creating a fatal
error?
Using git version 1.7.9.5 there is no "remove" command for remote. Use "rm" instead.
$ git remote rm upstream
$ git remote add upstream https://github.com/Foo/repos.git
or, as noted in the previous answer, set-url works.
I don't know when the command changed, but Ubuntu 12.04 shipped with 1.7.9.5.