Synopsis
git format-patch [<options>] <range>
git format-patch -1 <commit>
Description
The git format-patch command produces one mailbox-formatted patch file per commit in a range, ready to be applied with git am or sent with git send-email. Each patch includes the commit message, author, date, and the diff. Patches are numbered (0001-..., 0002-...) so they apply in order.