I found this gist, showing how to check out a pull request locally from GitHub.
I'm using bitbucket and I'm looking for a similar function.
Can you help me? Thank you
The Bitbucket interface gives you the basic command for checking out a branch. From the repository's Branches page, click the branch you want to checkout. Press the Check out button to display the appropriate check out command. Copy the command (or choose Check out in Sourcetree if you'd rather use Sourcetree).
Declining a pull request can't be undone. Once you decline a pull request, you'll have to open a new pull request request to review code for the same branch.
One may fetch the code from Bitbucket Server's pull requests using:
git fetch origin refs/pull-requests/$PR_NO/from:$LOCAL_BRANCH
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