link
git/format-patch

Create Patch

Prepare patches for email submission

git
patch
email

Command

git format-patch

Examples

Create patches for last 3 commits

git format-patch HEAD~3