Git patch cheatsheet
I always forget how to generate git patches and need to search for the right commands. This is a collection of useful commands and their source.
To generate the patches from the topmost commits from a specific SHA1
hash:
The last 10 patches from head
in a single patch file: