Download Github pull request as unified diff Download Github pull request as unified diff git git

Download Github pull request as unified diff


Somewhat related, to let git download pull request 123 and patch it into mylocalbranch locally, run:

git checkout -b mylocalbranchgit pull origin pull/921/head


To get the PR changes into your local repo in an staged but uncommitted state, so you can review:

git pull origin pull/123/head --no-commit

And to generate a patch file from that:

git diff --cached > pr123.diff