Skip to content

Commit 4855f06

Browse files
mina86gitster
authored andcommitted
send-email: simplify Gmail example in the documentation
There is no need for use to manually call ‘git credential’ especially as the interface isn’t super user-friendly and a bit confusing. ‘git send-email’ will do that for them at the first execution and if the password matches, it will be saved in the store. Simplify the documentaion so it dosn’t include the ‘git credential’ invocation (which was incorrect anyway as it should use ‘approve’ instead of ‘fill’) and instead just mentions that credentials helper must be set up. Signed-off-by: Michał Nazarewicz <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6640988 commit 4855f06

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

Documentation/git-send-email.txt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -452,16 +452,7 @@ edit ~/.gitconfig to specify your account settings:
452452

453453
If you have multifactor authentication setup on your gmail acocunt, you will
454454
need to generate an app-specific password for use with 'git send-email'. Visit
455-
https://security.google.com/settings/security/apppasswords to setup an
456-
app-specific password. Once setup, you can store it with the credentials
457-
helper:
458-
459-
$ git credential fill
460-
protocol=smtp
461-
host=smtp.gmail.com
462-
463-
password=app-password
464-
455+
https://security.google.com/settings/security/apppasswords to create it.
465456

466457
Once your commits are ready to be sent to the mailing list, run the
467458
following commands:
@@ -470,6 +461,11 @@ following commands:
470461
$ edit outgoing/0000-*
471462
$ git send-email outgoing/*
472463

464+
The first time you run it, you will be prompted for your credentials. Enter the
465+
app-specific or your regular password as appropriate. If you have credential
466+
helper configured (see linkgit:git-credential[1]), the password will be saved in
467+
the credential store so you won't have to type it the next time.
468+
473469
Note: the following perl modules are required
474470
Net::SMTP::SSL, MIME::Base64 and Authen::SASL
475471

0 commit comments

Comments
 (0)