To create a patch, there are two steps.
git format-patch <commit-reference>to convert all commits since the commit <commit-reference> (not including it) into patch files.
For example, if patches should be generated from the latest two commits:
git format-patch HEAD~~
This will create 2 files, one for each commit since
HEAD~~, like this: