How do I get a specific pull request on my machine?

git, github

Solution

From http://community.elgg.org/pages/view/1123557/how-to-check-out-a-pull-request-for-testing

For pull request #123:

git fetch origin pull/123/head:pr-123
git checkout pr-123 

Problem

Someone sent me a pull request. Before I merge it, I want to look at the changes on my machine. How do I do that?

Original source

Related problems