In general,
git format-patch -n HEAD^
(check help for the many options), although it’s really for mailing them.
For a single commit just
git show HEAD > some-patch0001.patch
will give you a useable patch.
In general,
git format-patch -n HEAD^
(check help for the many options), although it’s really for mailing them.
For a single commit just
git show HEAD > some-patch0001.patch
will give you a useable patch.