First time amending a commit? Amending and rebasing commits is an essential skill in this workflow. Check out our comprehensive guide to git rebase if you'd like to learn more.

-v2

-v3

git send-email --annotate -v2 HEAD^

Note that we also specified the "--annotate" flag. This is going to open the email in our editor before sending it out, so we can make any changes. We're going to add some "timely commentary". Look for the "---" and add a short summary of the differences since the first patch on the next line. It should look something like this:

Subject: [PATCH v2] Demonstrate that I can use git send-email --- This fixes the issues raised from the first patch. your-name | 1 + 1 file changed, 1 insertion(+)

This text gives the maintainers some extra context about your patch, but doesn't make it into the final git log. Close your editor, follow the prompts again, and that's it - you're done! Congratulations!

If you want some more tips on using git send-email, check out the next page.