From 2c4a92d234778bf35642920aa0beff186ac151bb Mon Sep 17 00:00:00 2001 From: Alison Li Date: Fri, 14 Aug 2020 17:11:15 -0700 Subject: [PATCH] git-send-email: add page (#3953) --- pages/common/git-send-email.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/common/git-send-email.md diff --git a/pages/common/git-send-email.md b/pages/common/git-send-email.md new file mode 100644 index 000000000..be0a25f25 --- /dev/null +++ b/pages/common/git-send-email.md @@ -0,0 +1,25 @@ +# git send-email + +> Send a collection of patches as emails. +> Patches can be specified as files, directions, or a revision list. +> More information: https://git-scm.com/docs/git-send-email + +- Send the last commit in the current branch: + +`git send-email -1` + +- Send a given commit: + +`git send-email -1 {{commit}}` + +- Send multiple (e.g. 10) commits in the current branch: + +`git send-email -10` + +- Send an extra mail before the patch mail(s) (e.g. an introduction to the patch set as a cover letter) and edit the mail(s) to be sent: + +`git send-email -{{number of commits} --cover-letter --annotate + +- Send the last commit in the current branch with the patch version (e.g. 2) indicated in the subject header (to appear as [PATCH v2]): + +`git send-email -v2 -1` \ No newline at end of file