3

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,478
  • 11
  • 24

1 Answers1

5

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-
  • 218,210
  • 55
  • 464
  • 476