doc: replace git config --list/-l with `list`

Replace uses of `git config --list` (short or long) with the subcommand `list` since `--list` is deprecated. We will change the “man page” phrasing in gitcvs-migration(7) in the next commit, since we are already visiting that sentence. But note that we leave the “man page” phrasing in the sentence that we touch in gittutorial(7) since it’s a tutorial and not a manual page. We can be more wordy in a tutorial context. Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Kristoffer Haugsbakk committed Apr 5, 2026 at 12:31 UTC 5bdb9883bda41024e3c47f1cddf69977d82fe3a9
6 files changed +6 -6
Documentation/git-var.adoc
+1 -1
@@ -22,7 +22,7 @@ OPTIONS
22 Display the logical variables. In addition, all the
23 variables of the Git configuration file .git/config are listed
24 as well. (However, the configuration variables listing functionality
25 - is deprecated in favor of `git config -l`.)
25 + is deprecated in favor of `git config list`.)
26
27 EXAMPLES
28 --------
Documentation/gitcvs-migration.adoc
+1 -1
@@ -49,7 +49,7 @@ them first before running git pull.
49 ================================
50 The 'pull' command knows where to get updates from because of certain
51 configuration variables that were set by the first 'git clone'
52 -command; see `git config -l` and the linkgit:git-config[1] man
52 +command; see `git config list` and the linkgit:git-config[1] man
53 page for details.
54 ================================
55
Documentation/gitprotocol-v2.adoc
+1 -1
@@ -659,7 +659,7 @@ use by the client, MUST indicate prerequisites (in any) with standard
659 applicable.
660 +
661 The advertised URI may alternatively contain a plaintext file that `git
662 -config --list` would accept (with the `--file` option). The key-value
662 +config list` would accept (with the `--file` option). The key-value
663 pairs in this list are in the `bundle.*` namespace (see
664 linkgit:git-config[1]).
665
Documentation/gittutorial.adoc
+1 -1
@@ -432,7 +432,7 @@ bob$ git config --get remote.origin.url
432 -------------------------------------
433
434 (The complete configuration created by `git clone` is visible using
435 -`git config -l`, and the linkgit:git-config[1] man page
435 +`git config list`, and the linkgit:git-config[1] man page
436 explains the meaning of each option.)
437
438 Git also keeps a pristine copy of Alice's `master` branch under the
Documentation/technical/api-trace2.adoc
+1 -1
@@ -1253,7 +1253,7 @@ it.
1253 $ git config --system color.ui never
1254 $ git config --global color.ui always
1255 $ git config --local color.ui auto
1256 -$ git config --list --show-scope | grep 'color.ui'
1256 +$ git config list --show-scope | grep 'color.ui'
1257 system color.ui=never
1258 global color.ui=always
1259 local color.ui=auto
Documentation/user-manual.adoc
+1 -1
@@ -2865,7 +2865,7 @@ stored in Git configuration variables, which you can see using
2865 linkgit:git-config[1]:
2866
2867 -------------------------------------------------
2868 -$ git config -l
2868 +$ git config list
2869 core.repositoryformatversion=0
2870 core.filemode=true
2871 core.logallrefupdates=true