6 git-send-email - Send a collection of patches as emails
11 'git-send-email' [options] <file|directory> [... file|directory]
17 Takes the patches given on the command line and emails them out.
19 The header of the email is configurable by command line options. If not
20 specified on the command line, the user will be prompted with a ReadLine
21 enabled interface to provide the necessary information.
25 The options available are:
28 Specify a "Bcc:" value for each email.
30 The --bcc option must be repeated for each user you want on the bcc list.
33 Specify a starting "Cc:" value for each email.
35 The --cc option must be repeated for each user you want on the cc list.
38 Specify a command to execute once per patch file which
39 should generate patch file specific "Cc:" entries.
40 Output of this command must be single email address per line.
41 Default is the value of 'sendemail.cccmd' configuration value.
43 --chain-reply-to, --no-chain-reply-to::
44 If this is set, each email will be sent as a reply to the previous
45 email sent. If disabled with "--no-chain-reply-to", all emails after
46 the first will be sent as replies to the first email sent. When using
47 this, it is recommended that the first file given be an overview of the
49 Default is the value of the 'sendemail.chainreplyto' configuration
50 value; if that is unspecified, default to --chain-reply-to.
53 Use $GIT_EDITOR, core.editor, $VISUAL, or $EDITOR to edit an
54 introductory message for the patch series.
57 Specify the sender of the emails. This will default to
58 the value GIT_COMMITTER_IDENT, as returned by "git-var -l".
59 The user will still be prompted to confirm this entry.
62 Specify the contents of the first In-Reply-To header.
63 Subsequent emails will refer to the previous email
64 instead of this if --chain-reply-to is set (the default)
65 Only necessary if --compose is also set. If --compose
66 is not set, this will be prompted for.
68 --signed-off-by-cc, --no-signed-off-by-cc::
69 If this is set, add emails found in Signed-off-by: or Cc: lines to the
71 Default is the value of 'sendemail.signedoffcc' configuration value;
72 if that is unspecified, default to --signed-off-by-cc.
75 Make git-send-email less verbose. One line per email should be
79 A configuration identity. When given, causes values in the
80 'sendemail.<identity>' subsection to take precedence over
81 values in the 'sendemail' section. The default identity is
82 the value of 'sendemail.identity'.
85 If set, specifies the outgoing SMTP server to use (e.g.
86 `smtp.example.com` or a raw IP address). Alternatively it can
87 specify a full pathname of a sendmail-like program instead;
88 the program must support the `-i` option. Default value can
89 be specified by the 'sendemail.smtpserver' configuration
90 option; the built-in default is `/usr/sbin/sendmail` or
91 `/usr/lib/sendmail` if such program is available, or
92 `localhost` otherwise.
95 Specifies a port different from the default port (SMTP
96 servers typically listen to smtp port 25 and ssmtp port
100 Username for SMTP-AUTH. In place of this option, the following
101 configuration variables can be specified:
105 * sendemail.<identity>.smtpuser (see sendemail.identity).
108 However, --smtp-user always overrides these variables.
110 If a username is not specified (with --smtp-user or a
111 configuration variable), then authentication is not attempted.
114 Password for SMTP-AUTH. The argument is optional: If no
115 argument is specified, then the empty string is used as
118 In place of this option, the following configuration variables
123 * sendemail.<identity>.smtppass (see sendemail.identity).
126 However, --smtp-pass always overrides these variables.
128 Furthermore, passwords need not be specified in configuration files
129 or on the command line. If a username has been specified (with
130 --smtp-user or a configuration variable), but no password has been
131 specified (with --smtp-pass or a configuration variable), then the
132 user is prompted for a password while the input is masked for privacy.
135 If set, connects to the SMTP server using SSL.
136 Default is the value of the 'sendemail.smtpssl' configuration value;
137 if that is unspecified, does not use SSL.
140 Specify the initial subject of the email thread.
141 Only necessary if --compose is also set. If --compose
142 is not set, this will be prompted for.
144 --suppress-from, --no-suppress-from::
145 If this is set, do not add the From: address to the cc: list.
146 Default is the value of 'sendemail.suppressfrom' configuration value;
147 if that is unspecified, default to --no-suppress-from.
149 --thread, --no-thread::
150 If this is set, the In-Reply-To header will be set on each email sent.
151 If disabled with "--no-thread", no emails will have the In-Reply-To
153 Default is the value of the 'sendemail.thread' configuration value;
154 if that is unspecified, default to --thread.
157 Do everything except actually send the emails.
160 Specify the envelope sender used to send the emails.
161 This is useful if your default address is not the address that is
162 subscribed to a list. If you use the sendmail binary, you must have
163 suitable privileges for the -f parameter.
166 Specify the primary recipient of the emails generated.
167 Generally, this will be the upstream maintainer of the
169 Default is the value of the 'sendemail.to' configuration value;
170 if that is unspecified, this will be prompted for.
172 The --to option must be repeated for each user you want on the to list.
178 The default configuration identity. When specified,
179 'sendemail.<identity>.<item>' will have higher precedence than
180 'sendemail.<item>'. This is useful to declare multiple SMTP
181 identities and to hoist sensitive authentication information
182 out of the repository and into the global configuration file.
184 sendemail.aliasesfile::
185 To avoid typing long email addresses, point this to one or more
186 email aliases files. You must also supply 'sendemail.aliasfiletype'.
188 sendemail.aliasfiletype::
189 Format of the file(s) specified in sendemail.aliasesfile. Must be
190 one of 'mutt', 'mailrc', 'pine', or 'gnus'.
193 Email address (or alias) to always send to.
196 Command to execute to generate per patch file specific "Cc:"s.
199 Email address (or alias) to always bcc.
201 sendemail.chainreplyto::
202 Boolean value specifying the default to the '--chain_reply_to'
205 sendemail.smtpserver::
206 Default SMTP server to use.
209 Default SMTP-AUTH username.
212 Default SMTP-AUTH password.
215 Boolean value specifying the default to the '--smtp-ssl' parameter.
219 Written by Ryan Anderson <ryan@michonline.com>
221 git-send-email is originally based upon
222 send_lots_of_email.pl by Greg Kroah-Hartman.
226 Documentation by Ryan Anderson
230 Part of the linkgit:git[7] suite