git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] send-email: fix docs regarding storing password with git credential

From
Michal Nazarewicz <mina86@mina86.com>
Date
Apr 2, 2018, 23:23 UTC
Message-ID
<20180402232348.20293-1-mina86@mina86.com>
In-Reply-To
<xmqqk1tpxo0g.fsf@gitster-ct.c.googlers.com>

First of all, ‘git credential fill’ does not store credentials but is used to *read* them. The command which adds credentials to the helper’s store is ‘git credential approve’.

Second of all, git-send-email will include port number in host parameter when getting the password so it has to be set when storing the password as well.

Apply the two above to fix the Gmail example in git-send-email documentation.

Signed-off-by: Michał Nazarewicz <mina86@mina86.com>
---
 Documentation/git-send-email.txt | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt
index 71ef97ba9..172c7b344 100644
--- a/Documentation/git-send-email.txt
+++ b/Documentation/git-send-email.txt
@@ -477,13 +477,12 @@ https://security.google.com/settings/security/apppasswords to setup an
 app-specific password.  Once setup, you can store it with the credentials
 helper:
 
-	$ git credential fill
+	$ git credential approve
 	protocol=smtp
-	host=smtp.gmail.com
+	host=smtp.gmail.com:587
 	username=youname@gmail.com
 	password=app-password
 
-
 Once your commits are ready to be sent to the mailing list, run the
 following commands:
 
-- 
2.16.2
Previous: Junio C HamanoNext: Jeff King
Message 3 of 7 in “send-email: report host and port separately when calling git credential”
  1. send-email: report host and port separately when calling git credentialMichal Nazarewicz, Mar 31, 2018
  2. Junio C HamanoApr 2, 2018
  3. send-email: fix docs regarding storing password with git credentialMichal Nazarewicz, Apr 2, 2018
  4. Jeff KingApr 4, 2018
  5. send-email: simplify Gmail example in the documentationMichal Nazarewicz, Apr 7, 2018
  6. Michał NazarewiczApr 7, 2018
  7. Jeff KingApr 4, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.