FYI:
http://stackoverflow...test-git-commit
git format-patch -n HEAD^
git show HEAD > some-patch0001.patch
In a simpler way:
if you want to produce a patch from your last commit:
git format-patch -n1
if you want to produce a patch series including your last 3 commits (for example):
git format-patch -n3
and the 3 patches will be named 0001-*, 0002-*, 0003-*.