3

I want to update a forked repo from GitHub web interface.

I tried a few things from other questions but it gave me fatal: not a git repo when I use git remote add upstream git://blabla

1
  • You want to update the upstream link on the github web page? Sorry, there is no option for that.
    – J-16 SDiZ
    Commented Oct 15, 2012 at 6:34

1 Answer 1

1

Try using an https address first, as mentioned in GitHub FAQ:

git remote add upstream https://github.com/octocat/Spoon-Knife.git
# if upstream already exist
git remote set-url upstream https://github.com/octocat/Spoon-Knife.git

And make sure of the case used in this address (it is case-sensitive, and the slightest error will give you "not a git repo").

2
  • Is it possible in Web interface? I made some progress in console. I typed wrong remote url. How can I change it? It gives "remote url already exist"
    – Imrahil
    Commented Oct 15, 2012 at 6:16
  • 1
    @Imrahil use git remote set-url: see git-scm.com/docs/git-remote. That will allow you to update/replace the url associated with a remote.
    – VonC
    Commented Oct 15, 2012 at 6:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.