How to get a fork back up to date with the original repo it is forked from

  1. From the local project directory:

    git remote add upstream


git remote add upstream git://
  1. git branch (to verify you are on master branch)

  2. git pull --rebase upstream master

Only need to do step 1 the first time. (It is how you add a named remote location called 'upstream')

So upstream is not a keyword or a reserved word: it is just a convention. It's the usual name to give the remote from which the repo was forked.

You can view your remotes (in detail) by using:

git remote -v

origin (fetch)
origin (push)
upstream    git:// (fetch)
upstream    git:// (push)


results matching ""

    No results matching ""