Bitbucket – checkout a Pull Request

From here: https://gist.github.com/hongymagic/6339056

First add this to .git/config under the origin section:

    fetch = +refs/pull-requests/*:refs/remotes/origin/pull-requests/*

Then fetch the pull requests:

git fetch origin

Then checkout the one you want:

git checkout pull-requests/1000/from

Leave a Reply