git-format-patch
Prepare .patch files. tldr-pages
On several platforms
Several platforms
Prepare .patch files. Useful when emailing commits elsewhere.
Create an auto-named .patch file for all the unpushed commits
git format-patch originIdentifyWrite a .patch file for all the commits between 2 revisions to stdout
git format-patch revision_1..revision_2IdentifyWrite a .patch file for the n latest commits
git format-patch -nIdentify