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
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
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
").
git remote set-url
: see git-scm.com/docs/git-remote. That will allow you to update/replace the url associated with a remote.