]> git.ipfire.org Git - thirdparty/git.git/commitdiff
docs: expand on possible and recommended user config options
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 22 Jan 2020 03:45:40 +0000 (03:45 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jan 2020 20:27:08 +0000 (12:27 -0800)
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-commit.txt

index 30c30ccd806e5aa7ec98482100b93c4aa21efc34..7b61c9ba79794d9aa3479e11661a8e16fd002ced 100644 (file)
@@ -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[]