Git – Download Github pull request as unified diff

diff()gitgithubversion control

How can I download the changes contained in a Github pull request as a unified diff?

Best Answer

To view a commit as a diff/patch file, just add .diff or .patch to the end of the URL, for example: