How to specify 'git send-email' to send mail on a specific patch?
git-send-email
takes arguments specifying the patches to send. For example,
git send-email HEAD^
will create a patch for the last commit on your current branch. Similarly if you are formatting patches first with git-am
, you can specify only the single patch file you want to send.
For more information on how to specify revisions, see man git-rev-list
. The common methods you'll probably care about:
<commit1>..<commit2>
means everything after up to<commit>^
means the commit before<commit>
<commit>~5
means the commit five commits before<commit>