From: Aditya Garg <gargaditya08@live.com>
To: Junio C Hamano <gitster@pobox.com>,
"git@vger.kernel.org" <git@vger.kernel.org>
Cc: Julian Swagemakers <julian@swagemakers.org>,
Eric Sunshine <sunshine@sunshineco.com>,
Zi Yao <ziyao@disroot.org>,
Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>,
"sandals@crustytoothpaste.net" <sandals@crustytoothpaste.net>,
Johannes Schindelin <johannes.schindelin@gmx.de>
Subject: [PATCH v5 4/4] docs: make the purpose of using app password for Gmail more clear in send-email
Date: Wed, 28 May 2025 07:05:38 +0000 [thread overview]
Message-ID: <20250528070521.17379-5-gargaditya08@live.com> (raw)
In-Reply-To: <20250528070521.17379-1-gargaditya08@live.com>
The current example for Gmail suggests using app passwords for
send-email if user has multi-factor authentication set up for their
account. However, it does not clarify that the user cannot use their
normal password in case they do not have multi-factor authentication
enabled. Most likely the example was written in the days when Google
allowed using normal passwords without multi-factor authentication.
This commit clarifies that app passwords are required and suggests using
OAuth2 if the user does not want to enable multi-factor authentication.
---
Documentation/git-send-email.adoc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/git-send-email.adoc b/Documentation/git-send-email.adoc
index aff0861d29..99c126cd5a 100644
--- a/Documentation/git-send-email.adoc
+++ b/Documentation/git-send-email.adoc
@@ -524,9 +524,12 @@ edit `~/.gitconfig` to specify your account settings:
smtpServerPort = 587
----
+Gmail does not allow using your account password for `git send-email`.
If you have multi-factor authentication set up on your Gmail account, you can
generate an app-specific password for use with `git send-email`. Visit
https://security.google.com/settings/security/apppasswords to create it.
+If you do not want to enable multi-factor authentication, you can use OAuth2.0
+authentication as described below.
You can also use OAuth2.0 authentication with Gmail. `OAUTHBEARER` and
`XOAUTH2` are common methods used for this type of authentication. Gmail
--
2.43.0
next prev parent reply other threads:[~2025-05-28 7:05 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 18:28 [PATCH] docs: add instructions to use Yahoo with send-mail Aditya Garg
2025-05-13 18:33 ` Aditya Garg
2025-05-13 18:42 ` Junio C Hamano
2025-05-13 18:51 ` Aditya Garg
2025-05-13 19:36 ` Aditya Garg
2025-05-14 12:58 ` Junio C Hamano
2025-05-14 13:05 ` Aditya Garg
2025-05-15 10:29 ` [PATCH v2 0/2] docs: update email credential helpers Aditya Garg
2025-05-15 10:29 ` [PATCH v2 1/2] docs: add credential helper for yahoo and link Google's sendgmail tool Aditya Garg
2025-05-15 10:29 ` [PATCH v2 2/2] docs: remove credential helper links for emails from gitcredentials Aditya Garg
2025-05-18 7:34 ` [PATCH v3 0/3] docs: update email credential helpers and improve formatting Aditya Garg
2025-05-18 7:35 ` [PATCH v3 1/3] docs: add credential helper for yahoo and link Google's sendgmail tool Aditya Garg
2025-05-18 7:36 ` [PATCH v3 2/3] docs: improve formatting in git-send-email documentation Aditya Garg
2025-05-18 7:36 ` [PATCH v3 3/3] docs: remove credential helper links for emails from gitcredentials Aditya Garg
2025-05-19 12:51 ` [PATCH v4 0/3] docs: update email credential helpers and improve formatting Aditya Garg
2025-05-19 12:52 ` [PATCH v4 1/3] docs: add credential helper for yahoo and link Google's sendgmail tool Aditya Garg
2025-05-19 12:52 ` [PATCH v4 2/3] docs: improve formatting in git-send-email documentation Aditya Garg
2025-05-19 12:53 ` [PATCH v4 3/3] docs: remove credential helper links for emails from gitcredentials Aditya Garg
2025-05-19 18:26 ` [PATCH v4 0/3] docs: update email credential helpers and improve formatting Junio C Hamano
2025-05-19 18:29 ` Aditya Garg
2025-05-28 7:05 ` [PATCH v5 0/4] " Aditya Garg
2025-05-28 7:05 ` [PATCH v5 1/4] docs: add credential helper for yahoo and link Google's sendgmail tool Aditya Garg
2025-05-28 7:05 ` [PATCH v5 2/4] docs: improve formatting in git-send-email documentation Aditya Garg
2025-05-29 18:15 ` Junio C Hamano
2025-05-29 19:04 ` Aditya Garg
2025-05-30 13:28 ` Junio C Hamano
2025-05-30 13:32 ` Aditya Garg
2025-05-30 17:15 ` Junio C Hamano
2025-05-30 17:19 ` Aditya Garg
2025-05-30 21:55 ` Junio C Hamano
2025-05-30 14:48 ` Ben Knoble
2025-05-30 14:51 ` Aditya Garg
2025-05-28 7:05 ` [PATCH v5 3/4] docs: remove credential helper links for emails from gitcredentials Aditya Garg
2025-05-28 7:05 ` Aditya Garg [this message]
2025-05-29 18:50 ` [PATCH v5 4/4] docs: make the purpose of using app password for Gmail more clear in send-email Junio C Hamano
2025-05-29 19:06 ` Aditya Garg
2025-05-28 7:23 ` [PATCH v5 0/4] docs: update email credential helpers and improve formatting Eric Sunshine
2025-05-28 9:36 ` Aditya Garg
2025-05-28 9:42 ` Aditya Garg
2025-05-28 10:05 ` Aditya Garg
2025-05-28 10:10 ` Aditya Garg
2025-05-30 11:37 ` [PATCH v6 " Aditya Garg
2025-05-30 11:37 ` [PATCH v6 1/4] docs: add credential helper for yahoo and link Google's sendgmail tool Aditya Garg
2025-05-30 11:37 ` [PATCH v6 2/4] docs: improve formatting in git-send-email documentation Aditya Garg
2025-05-30 11:37 ` [PATCH v6 3/4] docs: remove credential helper links for emails from gitcredentials Aditya Garg
2025-05-30 11:37 ` [PATCH v6 4/4] docs: make the purpose of using app password for Gmail more clear in send-email Aditya Garg
2025-05-30 15:50 ` [PATCH v7 0/4] docs: add credential helper for yahoo and link Google's sendgmail tool Aditya Garg
2025-05-30 15:50 ` [PATCH v7 1/4] " Aditya Garg
2025-05-30 15:50 ` [PATCH v7 2/4] docs: improve formatting in git-send-email documentation Aditya Garg
2025-05-30 15:50 ` [PATCH v7 3/4] docs: remove credential helper links for emails from gitcredentials Aditya Garg
2025-05-30 15:50 ` [PATCH v7 4/4] docs: make the purpose of using app password for Gmail more clear in send-email Aditya Garg
2025-05-30 17:28 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250528070521.17379-5-gargaditya08@live.com \
--to=gargaditya08@live.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=johannes.schindelin@gmx.de \
--cc=julian@swagemakers.org \
--cc=kristofferhaugsbakk@fastmail.com \
--cc=sandals@crustytoothpaste.net \
--cc=sunshine@sunshineco.com \
--cc=ziyao@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).