blob: f14705ee04e491e698e63ab10d15d9ec427b56f4 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-send-email(1)
2=================
3
4NAME
5----
6git-send-email - Send a collection of patches as emails
7
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamano610d1762008-11-28 06:27:1312'git send-email' [options] <file|directory|rev-list options>...
Junio C Hamano1a4e8412005-12-27 08:17:2313
14
Junio C Hamano1a4e8412005-12-27 08:17:2315DESCRIPTION
16-----------
17Takes the patches given on the command line and emails them out.
Junio C Hamanob95b43d2009-06-12 08:57:2818Patches can be specified as files, directories (which will send all
19files in the directory), or directly as a revision list. In the
20last case, any format accepted by linkgit:git-format-patch[1] can
21be passed to git send-email.
Junio C Hamano1a4e8412005-12-27 08:17:2322
Junio C Hamanoe1aeb5e2014-06-06 19:16:2923The header of the email is configurable via command-line options. If not
Junio C Hamano1a4e8412005-12-27 08:17:2324specified on the command line, the user will be prompted with a ReadLine
25enabled interface to provide the necessary information.
26
Junio C Hamanoa6455f62009-02-20 08:33:0827There are two formats accepted for patch files:
28
291. mbox format files
30+
31This is what linkgit:git-format-patch[1] generates. Most headers and MIME
32formatting are ignored.
33
342. The original format used by Greg Kroah-Hartman's 'send_lots_of_email.pl'
35script
36+
37This format expects the first line of the file to contain the "Cc:" value
38and the "Subject:" of the message as the second line.
39
Junio C Hamanoa476efa2008-10-10 15:31:4240
Junio C Hamano1a4e8412005-12-27 08:17:2341OPTIONS
42-------
Junio C Hamanoa476efa2008-10-10 15:31:4243
44Composing
45~~~~~~~~~
Junio C Hamano1a4e8412005-12-27 08:17:2346
Junio C Hamano3d141512009-06-01 01:22:4047--annotate::
Junio C Hamanoea3b7522013-04-18 19:37:5348Review and edit each patch you're about to send. Default is the value
49of 'sendemail.annotate'. See the CONFIGURATION section for
Junio C Hamano322c6242015-03-23 21:32:4650'sendemail.multiEdit'.
Junio C Hamano3d141512009-06-01 01:22:4051
Junio C Hamanod7ed4042015-08-03 19:43:0052--bcc=<address>,...::
Junio C Hamanoa476efa2008-10-10 15:31:4253Specify a "Bcc:" value for each email. Default is the value of
54'sendemail.bcc'.
Junio C Hamanoa3fd83c2007-03-02 10:34:3655+
Junio C Hamanod7ed4042015-08-03 19:43:0056This option may be specified multiple times.
Junio C Hamano97f518c2006-06-22 19:49:3557
Junio C Hamanod7ed4042015-08-03 19:43:0058--cc=<address>,...::
Junio C Hamanoc9154122006-02-15 02:22:0659Specify a starting "Cc:" value for each email.
Junio C Hamano1d40ee82009-01-07 10:14:1660Default is the value of 'sendemail.cc'.
Junio C Hamanoa3fd83c2007-03-02 10:34:3661+
Junio C Hamanod7ed4042015-08-03 19:43:0062This option may be specified multiple times.
Junio C Hamano97f518c2006-06-22 19:49:3563
Junio C Hamano86f75882006-02-06 02:27:2364--compose::
Junio C Hamano3b70d3c2009-11-21 17:37:3765Invoke a text editor (see GIT_EDITOR in linkgit:git-var[1])
66to edit an introductory message for the patch series.
Junio C Hamano610d1762008-11-28 06:27:1367+
Junio C Hamanoea82cff2009-03-18 01:54:4868When '--compose' is used, git send-email will use the From, Subject, and
69In-Reply-To headers specified in the message. If the body of the message
70(what you type after the headers and a blank line) only contains blank
Junio C Hamanoe1aeb5e2014-06-06 19:16:2971(or Git: prefixed) lines, the summary won't be sent, but From, Subject,
Junio C Hamanoea82cff2009-03-18 01:54:4872and In-Reply-To headers will be used unless they are removed.
Junio C Hamano610d1762008-11-28 06:27:1373+
Junio C Hamanoea82cff2009-03-18 01:54:4874Missing From or In-Reply-To headers will be prompted for.
Junio C Hamano3d141512009-06-01 01:22:4075+
Junio C Hamano322c6242015-03-23 21:32:4676See the CONFIGURATION section for 'sendemail.multiEdit'.
Junio C Hamano86f75882006-02-06 02:27:2377
Junio C Hamanob4a9ede2009-04-08 07:36:3278--from=<address>::
Junio C Hamano7ae18252009-05-23 09:53:3279Specify the sender of the emails. If not specified on the command line,
80the value of the 'sendemail.from' configuration option is used. If
Junio C Hamanoe1aeb5e2014-06-06 19:16:2981neither the command-line option nor 'sendemail.from' are set, then the
Junio C Hamano7ae18252009-05-23 09:53:3282user will be prompted for the value. The default for the prompt will be
83the value of GIT_AUTHOR_IDENT, or GIT_COMMITTER_IDENT if that is not
84set, as returned by "git var -l".
Junio C Hamano86f75882006-02-06 02:27:2385
Junio C Hamanob4a9ede2009-04-08 07:36:3286--in-reply-to=<identifier>::
Junio C Hamano97bcb482010-11-25 03:16:0787Make the first mail (or all the mails with `--no-thread`) appear as a
88reply to the given Message-Id, which avoids breaking threads to
89provide a new patch series.
90The second and subsequent emails will be sent as replies according to
91the `--[no]-chain-reply-to` setting.
92+
93So for example when `--thread` and `--no-chain-reply-to` are specified, the
94second and subsequent patches will be replies to the first one like in the
95illustration below where `[PATCH v2 0/3]` is in reply to `[PATCH 0/2]`:
96+
97 [PATCH 0/2] Here is what I did...
98 [PATCH 1/2] Clean up and tests
99 [PATCH 2/2] Implementation
100 [PATCH v2 0/3] Here is a reroll
101 [PATCH v2 1/3] Clean up
102 [PATCH v2 2/3] New tests
103 [PATCH v2 3/3] Implementation
104+
105Only necessary if --compose is also set. If --compose
106is not set, this will be prompted for.
Junio C Hamano86f75882006-02-06 02:27:23107
Junio C Hamanob4a9ede2009-04-08 07:36:32108--subject=<string>::
Junio C Hamanoa476efa2008-10-10 15:31:42109Specify the initial subject of the email thread.
110Only necessary if --compose is also set. If --compose
111is not set, this will be prompted for.
Junio C Hamanoc9154122006-02-15 02:22:06112
Junio C Hamanod7ed4042015-08-03 19:43:00113--to=<address>,...::
Junio C Hamanoa476efa2008-10-10 15:31:42114Specify the primary recipient of the emails generated. Generally, this
115will be the upstream maintainer of the project involved. Default is the
116value of the 'sendemail.to' configuration value; if that is unspecified,
Junio C Hamano39c7a692010-10-27 06:08:54117and --to-cmd is not specified, this will be prompted for.
Junio C Hamanoa476efa2008-10-10 15:31:42118+
Junio C Hamanod7ed4042015-08-03 19:43:00119This option may be specified multiple times.
Junio C Hamano86f75882006-02-06 02:27:23120
Junio C Hamano4015aed2010-06-27 20:07:42121--8bit-encoding=<encoding>::
122When encountering a non-ASCII message or subject that does not
123declare its encoding, add headers/quoting to indicate it is
124encoded in <encoding>. Default is the value of the
125'sendemail.assume8bitEncoding'; if that is unspecified, this
126will be prompted for if any non-ASCII files are encountered.
127+
128Note that no attempts whatsoever are made to validate the encoding.
129
Junio C Hamanoa1295452012-11-13 22:32:04130--compose-encoding=<encoding>::
131Specify encoding of compose message. Default is the value of the
132'sendemail.composeencoding'; if that is unspecified, UTF-8 is assumed.
133
Junio C Hamano6df93d92014-12-22 22:48:09134--transfer-encoding=(7bit|8bit|quoted-printable|base64)::
135Specify the transfer encoding to be used to send the message over SMTP.
1367bit will fail upon encountering a non-ASCII message. quoted-printable
137can be useful when the repository contains files that contain carriage
138returns, but makes the raw patch email file (as saved from a MUA) much
139harder to inspect manually. base64 is even more fool proof, but also
140even more opaque. Default is the value of the 'sendemail.transferEncoding'
141configuration value; if that is unspecified, git will use 8bit and not
142add a Content-Transfer-Encoding header.
143
Junio C Hamanoc9394b22015-01-07 22:45:48144--xmailer::
145--no-xmailer::
146Add (or prevent adding) the "X-Mailer:" header. By default,
147the header is added, but it can be turned off by setting the
148`sendemail.xmailer` configuration variable to `false`.
Junio C Hamanoa476efa2008-10-10 15:31:42149
150Sending
151~~~~~~~
152
Junio C Hamanob4a9ede2009-04-08 07:36:32153--envelope-sender=<address>::
Junio C Hamanoa476efa2008-10-10 15:31:42154Specify the envelope sender used to send the emails.
155This is useful if your default address is not the address that is
Junio C Hamano2bd8a742009-12-01 21:16:59156subscribed to a list. In order to use the 'From' address, set the
157value to "auto". If you use the sendmail binary, you must have
158suitable privileges for the -f parameter. Default is the value of the
Junio C Hamano322c6242015-03-23 21:32:46159'sendemail.envelopeSender' configuration variable; if that is
Junio C Hamanoa476efa2008-10-10 15:31:42160unspecified, choosing the envelope sender is left to your MTA.
161
Junio C Hamanob4a9ede2009-04-08 07:36:32162--smtp-encryption=<encryption>::
Junio C Hamanoa476efa2008-10-10 15:31:42163Specify the encryption to use, either 'ssl' or 'tls'. Any other
164value reverts to plain SMTP. Default is the value of
Junio C Hamano322c6242015-03-23 21:32:46165'sendemail.smtpEncryption'.
Junio C Hamanoa476efa2008-10-10 15:31:42166
Junio C Hamanocb39aea2010-05-09 07:24:48167--smtp-domain=<FQDN>::
168Specifies the Fully Qualified Domain Name (FQDN) used in the
169HELO/EHLO command to the SMTP server. Some servers require the
170FQDN to match your IP address. If not set, git send-email attempts
171to determine your FQDN automatically. Default is the value of
Junio C Hamano322c6242015-03-23 21:32:46172'sendemail.smtpDomain'.
Junio C Hamanocb39aea2010-05-09 07:24:48173
Junio C Hamanob4a9ede2009-04-08 07:36:32174--smtp-pass[=<password>]::
Junio C Hamanoa476efa2008-10-10 15:31:42175Password for SMTP-AUTH. The argument is optional: If no
176argument is specified, then the empty string is used as
Junio C Hamano322c6242015-03-23 21:32:46177the password. Default is the value of 'sendemail.smtpPass',
Junio C Hamanoa476efa2008-10-10 15:31:42178however '--smtp-pass' always overrides this value.
179+
180Furthermore, passwords need not be specified in configuration files
181or on the command line. If a username has been specified (with
Junio C Hamano322c6242015-03-23 21:32:46182'--smtp-user' or a 'sendemail.smtpUser'), but no password has been
183specified (with '--smtp-pass' or 'sendemail.smtpPass'), then
Junio C Hamano5e7f1312013-03-21 22:49:01184a password is obtained using 'git-credential'.
Junio C Hamano68522892007-09-06 01:33:41185
Junio C Hamanob4a9ede2009-04-08 07:36:32186--smtp-server=<host>::
Junio C Hamanob63afff2007-05-01 03:05:55187If set, specifies the outgoing SMTP server to use (e.g.
188`smtp.example.com` or a raw IP address). Alternatively it can
189specify a full pathname of a sendmail-like program instead;
Junio C Hamanob19b4f02006-10-29 20:47:22190the program must support the `-i` option. Default value can
Junio C Hamano322c6242015-03-23 21:32:46191be specified by the 'sendemail.smtpServer' configuration
Junio C Hamanob19b4f02006-10-29 20:47:22192option; the built-in default is `/usr/sbin/sendmail` or
193`/usr/lib/sendmail` if such program is available, or
194`localhost` otherwise.
Junio C Hamano1a4e8412005-12-27 08:17:23195
Junio C Hamanob4a9ede2009-04-08 07:36:32196--smtp-server-port=<port>::
Junio C Hamano4fd58d42007-09-30 00:51:14197Specifies a port different from the default port (SMTP
Junio C Hamanobacccda2009-08-03 08:07:12198servers typically listen to smtp port 25, but may also listen to
199submission port 587, or the common SSL smtp port 465);
200symbolic port names (e.g. "submission" instead of 587)
Junio C Hamano3d141512009-06-01 01:22:40201are also accepted. The port can also be set with the
Junio C Hamano322c6242015-03-23 21:32:46202'sendemail.smtpServerPort' configuration variable.
Junio C Hamanofce7c7e2008-07-02 03:06:38203
Junio C Hamano39c7a692010-10-27 06:08:54204--smtp-server-option=<option>::
205If set, specifies the outgoing SMTP server option to use.
Junio C Hamano322c6242015-03-23 21:32:46206Default value can be specified by the 'sendemail.smtpServerOption'
Junio C Hamano39c7a692010-10-27 06:08:54207configuration option.
208+
209The --smtp-server-option option must be repeated for each option you want
210to pass to the server. Likewise, different lines in the configuration files
211must be used for each option.
212
Junio C Hamano68522892007-09-06 01:33:41213--smtp-ssl::
Junio C Hamanoa476efa2008-10-10 15:31:42214Legacy alias for '--smtp-encryption ssl'.
Junio C Hamano68522892007-09-06 01:33:41215
Junio C Hamano58f587a2013-07-22 19:20:59216--smtp-ssl-cert-path::
Junio C Hamanoe8acc8e2015-01-14 22:01:34217Path to a store of trusted CA certificates for SMTP SSL/TLS
218certificate validation (either a directory that has been processed
219by 'c_rehash', or a single file containing one or more PEM format
220certificates concatenated together: see verify(1) -CAfile and
221-CApath for more information on these). Set it to an empty string
222to disable certificate verification. Defaults to the value of the
223'sendemail.smtpsslcertpath' configuration variable, if set, or the
224backing SSL library's compiled-in default otherwise (which should
225be the best choice on most platforms).
Junio C Hamano58f587a2013-07-22 19:20:59226
Junio C Hamanob4a9ede2009-04-08 07:36:32227--smtp-user=<user>::
Junio C Hamano322c6242015-03-23 21:32:46228Username for SMTP-AUTH. Default is the value of 'sendemail.smtpUser';
229if a username is not specified (with '--smtp-user' or 'sendemail.smtpUser'),
Junio C Hamanoa476efa2008-10-10 15:31:42230then authentication is not attempted.
Junio C Hamano86f75882006-02-06 02:27:23231
Junio C Hamano6ebd8042012-02-28 00:17:40232--smtp-debug=0|1::
233Enable (1) or disable (0) debug output. If enabled, SMTP
234commands and replies will be printed. Useful to debug TLS
235connection and authentication problems.
Junio C Hamanoa476efa2008-10-10 15:31:42236
237Automating
238~~~~~~~~~~
239
Junio C Hamano39c7a692010-10-27 06:08:54240--to-cmd=<command>::
241Specify a command to execute once per patch file which
242should generate patch file specific "To:" entries.
243Output of this command must be single email address per line.
244Default is the value of 'sendemail.tocmd' configuration value.
245
Junio C Hamanob4a9ede2009-04-08 07:36:32246--cc-cmd=<command>::
Junio C Hamanoa476efa2008-10-10 15:31:42247Specify a command to execute once per patch file which
248should generate patch file specific "Cc:" entries.
249Output of this command must be single email address per line.
Junio C Hamano322c6242015-03-23 21:32:46250Default is the value of 'sendemail.ccCmd' configuration value.
Junio C Hamanoa476efa2008-10-10 15:31:42251
Junio C Hamano25e7ba62009-06-14 01:03:22252--[no-]chain-reply-to::
Junio C Hamanoa476efa2008-10-10 15:31:42253If this is set, each email will be sent as a reply to the previous
254email sent. If disabled with "--no-chain-reply-to", all emails after
255the first will be sent as replies to the first email sent. When using
256this, it is recommended that the first file given be an overview of the
Junio C Hamano322c6242015-03-23 21:32:46257entire patch series. Disabled by default, but the 'sendemail.chainReplyTo'
Junio C Hamano096dde22009-12-26 23:14:11258configuration variable can be used to enable it.
Junio C Hamanoa476efa2008-10-10 15:31:42259
Junio C Hamanob4a9ede2009-04-08 07:36:32260--identity=<identity>::
Junio C Hamanoa476efa2008-10-10 15:31:42261A configuration identity. When given, causes values in the
262'sendemail.<identity>' subsection to take precedence over
263values in the 'sendemail' section. The default identity is
264the value of 'sendemail.identity'.
265
266--[no-]signed-off-by-cc::
267If this is set, add emails found in Signed-off-by: or Cc: lines to the
268cc list. Default is the value of 'sendemail.signedoffbycc' configuration
269value; if that is unspecified, default to --signed-off-by-cc.
Junio C Hamanoc9154122006-02-15 02:22:06270
Junio C Hamano45f804f2014-06-20 22:24:49271--[no-]cc-cover::
272If this is set, emails found in Cc: headers in the first patch of
273the series (typically the cover letter) are added to the cc list
274for each email set. Default is the value of 'sendemail.cccover'
275configuration value; if that is unspecified, default to --no-cc-cover.
276
277--[no-]to-cover::
278If this is set, emails found in To: headers in the first patch of
279the series (typically the cover letter) are added to the to list
280for each email set. Default is the value of 'sendemail.tocover'
281configuration value; if that is unspecified, default to --no-to-cover.
282
Junio C Hamanob4a9ede2009-04-08 07:36:32283--suppress-cc=<category>::
Junio C Hamano9c334152008-02-12 03:18:52284Specify an additional category of recipients to suppress the
Junio C Hamano0a235222009-03-06 08:21:09285auto-cc of:
286+
287--
288- 'author' will avoid including the patch author
289- 'self' will avoid including the sender
290- 'cc' will avoid including anyone mentioned in Cc lines in the patch header
291 except for self (use 'self' for that).
Junio C Hamano0e88f3e2009-06-21 08:03:25292- 'bodycc' will avoid including anyone mentioned in Cc lines in the
Junio C Hamano0a235222009-03-06 08:21:09293 patch body (commit message) except for self (use 'self' for that).
294- 'sob' will avoid including anyone mentioned in Signed-off-by lines except
295 for self (use 'self' for that).
296- 'cccmd' will avoid running the --cc-cmd.
Junio C Hamano0e88f3e2009-06-21 08:03:25297- 'body' is equivalent to 'sob' + 'bodycc'
Junio C Hamano0a235222009-03-06 08:21:09298- 'all' will suppress all auto cc values.
299--
300+
301Default is the value of 'sendemail.suppresscc' configuration value; if
302that is unspecified, default to 'self' if --suppress-from is
303specified, as well as 'body' if --no-signed-off-cc is specified.
Junio C Hamano9c334152008-02-12 03:18:52304
Junio C Hamanoa476efa2008-10-10 15:31:42305--[no-]suppress-from::
306If this is set, do not add the From: address to the cc: list.
Junio C Hamano322c6242015-03-23 21:32:46307Default is the value of 'sendemail.suppressFrom' configuration
Junio C Hamanoa476efa2008-10-10 15:31:42308value; if that is unspecified, default to --no-suppress-from.
309
310--[no-]thread::
Junio C Hamano1bbd0f42009-07-23 06:20:29311If this is set, the In-Reply-To and References headers will be
312added to each email sent. Whether each mail refers to the
313previous email (`deep` threading per 'git format-patch'
314wording) or to the first email (`shallow` threading) is
315governed by "--[no-]chain-reply-to".
316+
317If disabled with "--no-thread", those headers will not be added
318(unless specified with --in-reply-to). Default is the value of the
319'sendemail.thread' configuration value; if that is unspecified,
320default to --thread.
321+
322It is up to the user to ensure that no In-Reply-To header already
323exists when 'git send-email' is asked to add it (especially note that
324'git format-patch' can be configured to do the threading itself).
325Failure to do so may not produce the expected result in the
326recipient's MUA.
Junio C Hamanoa476efa2008-10-10 15:31:42327
328
329Administering
330~~~~~~~~~~~~~
Junio C Hamanoddc5ad42007-06-27 07:14:52331
Junio C Hamanob4a9ede2009-04-08 07:36:32332--confirm=<mode>::
Junio C Hamano0a235222009-03-06 08:21:09333Confirm just before sending:
334+
335--
336- 'always' will always confirm before sending
337- 'never' will never confirm before sending
338- 'cc' will confirm before sending when send-email has automatically
339 added addresses from the patch to the Cc list
340- 'compose' will confirm before sending the first message when using --compose.
341- 'auto' is equivalent to 'cc' + 'compose'
342--
343+
344Default is the value of 'sendemail.confirm' configuration value; if that
345is unspecified, default to 'auto' unless any of the suppress options
346have been specified, in which case default to 'compose'.
347
Junio C Hamano45889b42007-04-26 07:20:04348--dry-run::
349Do everything except actually send the emails.
350
Junio C Hamano3d141512009-06-01 01:22:40351--[no-]format-patch::
352When an argument may be understood either as a reference or as a file name,
353choose to understand it as a format-patch argument ('--format-patch')
354or as a file name ('--no-format-patch'). By default, when such a conflict
355occurs, git send-email will fail.
356
Junio C Hamanoa476efa2008-10-10 15:31:42357--quiet::
358Make git-send-email less verbose. One line per email should be
359all that is output.
Junio C Hamano45889b42007-04-26 07:20:04360
Junio C Hamanoa476efa2008-10-10 15:31:42361--[no-]validate::
362Perform sanity checks on patches.
363Currently, validation means the following:
Junio C Hamanoa3fd83c2007-03-02 10:34:36364+
Junio C Hamanoa476efa2008-10-10 15:31:42365--
366* Warn of patches that contain lines longer than 998 characters; this
367is due to SMTP limits as described by http://www.ietf.org/rfc/rfc2821.txt.
368--
369+
370Default is the value of 'sendemail.validate'; if this is not set,
371default to '--validate'.
Junio C Hamano97f518c2006-06-22 19:49:35372
Junio C Hamanocf29d332010-12-11 07:28:56373--force::
374Send emails even if safety checks would prevent it.
375
Junio C Hamano1a4e8412005-12-27 08:17:23376
Junio C Hamanoc51fede2007-03-12 07:29:20377CONFIGURATION
378-------------
Junio C Hamano68522892007-09-06 01:33:41379
Junio C Hamano322c6242015-03-23 21:32:46380sendemail.aliasesFile::
Junio C Hamanoc51fede2007-03-12 07:29:20381To avoid typing long email addresses, point this to one or more
Junio C Hamano322c6242015-03-23 21:32:46382email aliases files. You must also supply 'sendemail.aliasFileType'.
Junio C Hamanoc51fede2007-03-12 07:29:20383
Junio C Hamano322c6242015-03-23 21:32:46384sendemail.aliasFileType::
385Format of the file(s) specified in sendemail.aliasesFile. Must be
Junio C Hamanoce447ab2015-06-16 22:08:01386one of 'mutt', 'mailrc', 'pine', 'elm', or 'gnus', or 'sendmail'.
387+
388What an alias file in each format looks like can be found in
389the documentation of the email program of the same name. The
390differences and limitations from the standard formats are
391described below:
392+
393--
394sendmail;;
395* Quoted aliases and quoted addresses are not supported: lines that
396contain a `"` symbol are ignored.
Junio C Hamanodf5384b2015-06-24 21:12:12397* Redirection to a file (`/path/name`) or pipe (`|command`) is not
398supported.
399* File inclusion (`:include: /path/name`) is not supported.
Junio C Hamanoce447ab2015-06-16 22:08:01400* Warnings are printed on the standard error output for any
401explicitly unsupported constructs, and any other lines that are not
402recognized by the parser.
403--
Junio C Hamanoc51fede2007-03-12 07:29:20404
Junio C Hamano322c6242015-03-23 21:32:46405sendemail.multiEdit::
Junio C Hamano610d1762008-11-28 06:27:13406If true (default), a single editor instance will be spawned to edit
407files you have to edit (patches when '--annotate' is used, and the
408summary when '--compose' is used). If false, files will be edited one
409after the other, spawning a new editor each time.
410
Junio C Hamano0a235222009-03-06 08:21:09411sendemail.confirm::
412Sets the default for whether to confirm before sending. Must be
413one of 'always', 'never', 'cc', 'compose', or 'auto'. See '--confirm'
414in the previous section for the meaning of these values.
415
Junio C Hamanob77f8192011-05-05 01:30:38416EXAMPLE
417-------
Junio C Hamanofacbe512010-05-05 02:42:36418Use gmail as the smtp server
Junio C Hamanob77f8192011-05-05 01:30:38419~~~~~~~~~~~~~~~~~~~~~~~~~~~~
420To use 'git send-email' to send your patches through the GMail SMTP server,
421edit ~/.gitconfig to specify your account settings:
Junio C Hamanofacbe512010-05-05 02:42:36422
423[sendemail]
Junio C Hamano322c6242015-03-23 21:32:46424smtpEncryption = tls
425smtpServer = smtp.gmail.com
426smtpUser = yourname@gmail.com
427smtpServerPort = 587
Junio C Hamanofacbe512010-05-05 02:42:36428
Junio C Hamanob77f8192011-05-05 01:30:38429Once your commits are ready to be sent to the mailing list, run the
430following commands:
431
432$ git format-patch --cover-letter -M origin/master -o outgoing/
433$ edit outgoing/0000-*
434$ git send-email outgoing/*
435
Junio C Hamanofacbe512010-05-05 02:42:36436Note: the following perl modules are required
437 Net::SMTP::SSL, MIME::Base64 and Authen::SASL
438
Junio C Hamanob77f8192011-05-05 01:30:38439SEE ALSO
440--------
441linkgit:git-format-patch[1], linkgit:git-imap-send[1], mbox(5)
442
Junio C Hamano1a4e8412005-12-27 08:17:23443GIT
444---
Junio C Hamanof7c042d2008-06-06 22:50:53445Part of the linkgit:git[1] suite