Sometimes pull requests are quite complex and/or potentially bug-ridden. In that case it can be a little unreasonable to spot check a pull request solely by reading the code. It makes more sense to checkout, pull, and build that pull request locally first before merging it. In this manner a repo maintainer can have more confidence that the pull request didn't introduce any regression issues.
I can checkout a pull request from the command-line fairly easily, but I would prefer to use SourceTree. I know using the command-line is simple and straightforward, but I believe in using GUI tools whenever possible over command-line tools. SourceTree has become the de facto standard gui git client for windows, so it seems like SourceTree would have this basic functionality. However, I tried a number of different commands and dialogs and I can't seem to get access to the pull request inside SourceTree.
Can a pull request be pulled locally just using SourceTree? How?
I found that Abhishek's answer works just fine!
Here is how i did:
"[remote "origin"]
-entry, change fetch to: fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
No the PRs is shown as branches:
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