path: root/Documentation/git-send-email.txt
diff options
authorJonathan Nieder <>2011-04-15 02:33:57 (GMT)
committerJunio C Hamano <>2011-04-15 20:28:03 (GMT)
commit36c10e6d7543f9f35295df0113b0c250ad421eb4 (patch)
treee9c98f63392bfc550c520c905120a8d2d844d657 /Documentation/git-send-email.txt
parent967ab8efd7f294c05b57db600c4e548d7c4f8b2f (diff)
Documentation: publicize hints for sending patches with GMail
The hints in SubmittingPatches about stopping GMail from clobbering patches are widely useful both as examples of "git send-email" and "git imap-send" usage. Move the documentation to the appropriate places. While at it, don't encourage storing passwords in config files. Signed-off-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-send-email.txt')
1 files changed, 16 insertions, 3 deletions
diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index ee14f74..5a168cf 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
@@ -348,10 +348,12 @@ sendemail.confirm::
one of 'always', 'never', 'cc', 'compose', or 'auto'. See '--confirm'
in the previous section for the meaning of these values.
Use gmail as the smtp server
-Add the following section to the config file:
+To use 'git send-email' to send your patches through the GMail SMTP server,
+edit ~/.gitconfig to specify your account settings:
smtpencryption = tls
@@ -359,9 +361,20 @@ Add the following section to the config file:
smtpuser =
smtpserverport = 587
+Once your commits are ready to be sent to the mailing list, run the
+following commands:
+ $ git format-patch --cover-letter -M origin/master -o outgoing/
+ $ edit outgoing/0000-*
+ $ git send-email outgoing/*
Note: the following perl modules are required
Net::SMTP::SSL, MIME::Base64 and Authen::SASL
+linkgit:git-format-patch[1], linkgit:git-imap-send[1], mbox(5)
Part of the linkgit:git[1] suite