Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

github

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?

like image 645
Jay Bazuzi Avatar asked Mar 13 '13 21:03

Jay Bazuzi


People also ask

How do I duplicate a pull request?

Marking duplicates To mark an issue or pull request as a duplicate, type "Duplicate of" followed by the issue or pull request number it duplicates in the body of a new comment.

How do I find a specific pull request on GitHub?

Creating the pull request. On GitHub.com, navigate to the main page of the repository. In the "Branch" menu, choose the branch that contains your commits. Above the list of files, click Pull request.

How do I checkout a specific pull request?

To check out a pull request locally, use the gh pr checkout subcommand. Replace pull-request with the number, URL, or head branch of the pull request.

How do I make multiple Pull requests from the same branch?

To stack two PRs, checkout the first branch from your base master (or develop ) and push your changes. Create the PR with the base as master . Then, checkout the second branch from the first.


1 Answers

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 
like image 175
Jay Bazuzi Avatar answered Oct 26 '22 12:10

Jay Bazuzi