Creating patches from all comits from a given commit
$ git format-patch <sha>
You'll now have one .patch
file for each of the commits between
the commit SHA you entered and HEAD.
Applying patch files
$ git am --interactive --ignore-space-change --ignore-whitespace --keep-cr --reject *.patch