We use git and GitHub to develop SAMOA, so you need to open an account at http://github.com first.In the guide I assume <user> is your actual GitHub username. I also assume familiarity with git's concepts.

Commands to be entered on the command line are shown in monospace font:

Setup the upstream remote

Now we need to setup a remote pointing to SAMOA's GitHub repository. This remote is useful for contributors to fetch the latest modifications before submitting a pull request, and for committers to fetch pull request to review and merge.

Fetch pull requests automatically

The easy way to check out a pull request is the following.

git fetch upstream pull/ID/head:SAMOA-XXgit checkout 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).