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?
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With