1

Github has a compare feature that can be used to compare changes across different forks. e.g. How can I diff two branches in GitHub?

Question: how can I download the result of such a compare as a patch file?

Thanks,

cmutex
  • 1,128
  • 6
  • 16

1 Answers1

3

You can add .patch to the end of the URL. An example Compare page:

https://github.com/github/linguist/compare/9693336...1bbcfa5

and its formatted patch:

https://github.com/github/linguist/compare/9693336...1bbcfa5.patch

Ry-
  • 209,133
  • 54
  • 439
  • 449