To create a patch, there are two steps.
Make your changes and commit them.
Run 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 commit...