Skip to content

Instantly share code, notes, and snippets.

@bradfa
Created October 1, 2012 15:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradfa/3812485 to your computer and use it in GitHub Desktop.
Save bradfa/3812485 to your computer and use it in GitHub Desktop.
Send some patches from git
git format-patch --cover-letter --subject-prefix="PATCH v2" -o <my_patch_dir_v2> foo..bar
Edit created files in <my_patch_dir> to add things like "Changes since vX" and to fill in patch 0/X info with title and summary.
git send-email <my_patch_dir_v2>
Only add --cover-letter if I want a PATCH 0/X first email which all following patches reply to.
Only add --subject-prefix if "[PATCH]" isn't the prefix I want.
Add --compose to send-email to spawn text editor to write some nice things if didn't use --cover-letter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment