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

[PATCH v5 2/5] docs: expand on possible and recommended user config options

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jan 22, 2020, 03:45 UTC
Message-ID
<20200122034543.18927-3-sandals@crustytoothpaste.net>
In-Reply-To
<20200122034543.18927-1-sandals@crustytoothpaste.net>

In the section on setting author and committer information, we omit the author.* and committer.* variables, so mention them for completeness. In addition, guide users to the typical case: simply setting user.name and user.email, which are recommended if one does not need complex configuration.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
---
 Documentation/git-commit.txt | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 30c30ccd80..7b61c9ba79 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -482,6 +482,13 @@ system user name and the hostname used for outgoing mail (taken
 from `/etc/mailname` and falling back to the fully qualified hostname when
 that file does not exist).
 
+The `author.name` and `committer.name` and their corresponding email options
+override `user.name` and `user.email` if set and are overridden themselves by
+the environment variables.
+
+The typical usage is to set just the `user.name` and `user.email` variables;
+the other options are provided for more complex use cases.
+
 :git-commit: 1
 include::date-formats.txt[]
 
Previous: brian m. carlsonNext: brian m. carlson
Message 2 of 8 in “Documentation for common user misconceptions”
  1. 0/5 Documentation for common user misconceptionsbrian m. carlson, Jan 22, 2020
  2. 2/5 docs: expand on possible and recommended user config optionsbrian m. carlson, Jan 22, 2020
  3. 1/5 doc: move author and committer information to git-commit(1)brian m. carlson, Jan 22, 2020
  4. 3/5 doc: provide guidance on user.name formatbrian m. carlson, Jan 22, 2020
  5. 5/5 docs: mention when increasing http.postBuffer is valuablebrian m. carlson, Jan 22, 2020
  6. 4/5 doc: dissuade users from trying to ignore tracked filesbrian m. carlson, Jan 22, 2020
  7. Jeff KingJan 22, 2020
  8. Emily ShafferJan 22, 2020

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.