git format-patch
November 19, 2017
To create a patch of the latest commit:
git format-patch -1 HEAD
The last 10 patches from head in a single patch file:
git format-patch -10 HEAD --stdout > last-10-commits.patch
Apply the patch:
git apply path-file-name