Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

git remote add upstream git@github.com:apache/incubator-samoa.git
git fetch upstream
git branch -u upstream/master
git remote -v
origin git@github.com:<user>/incubator-samoa.git (fetch)
origin git@github.com:<user>/incubator-samoa.git (push))
upstream git@github.com:apache/incubator-samoa.git (fetch)
upstream git@github.com:apache/incubator-samoa.git (push)

...

git remote add apache https://git-wip-us.apache.org/repos/asf/incubator-samoa.git
git fetch apache
git remote -v
apache https://git-wip-us.apache.org/repos/asf/incubator-samoa.git (fetch)
apache https://git-wip-us.apache.org/repos/asf/incubator-samoa.git (push)
origin git@github.com:<user>/incubator-samoa.git (fetch)
origin git@github.com:<user>/incubator-samoa.git (push))
upstream git@github.com:apache/incubator-samoa.git (fetch)
upstream git@github.com:apache/incubator-samoa.git (push)

Anchor
autofetch
autofetch

...

Fetch pull

...

requests automatically

The easy way to check out To review a pull request you will need to do a local checkoutis the following.

git fetch upstream pull/ID/head:SAMOA-XX
git checkout SAMOA-XX

...

SAMOA-XX

...

If you review many pull requests, you can setup your git clone to automatically fetch the pull requests from the upstream remote.
The order in which you add the refs is important (pull goes before heads). 

...