Skip to content

Commit 15a2729

Browse files
committed
Merge branch 'dg/document-git-c-in-git-config-doc' into maint
The "git -c var[=val] cmd" facility to append a configuration variable definition at the end of the search order was described in git(1) manual page, but not in git-config(1), which was more likely place for people to look for when they ask "can I make a one-shot override, and if so how?" * dg/document-git-c-in-git-config-doc: doc: mention `git -c` in git-config(1)
2 parents ba22efd + ae1f709 commit 15a2729

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Documentation/git-config.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ The files are read in the order given above, with last value found taking
263263
precedence over values read earlier. When multiple values are taken then all
264264
values of a key from all files will be used.
265265

266+
You may override individual configuration parameters when running any git
267+
command by using the `-c` option. See linkgit:git[1] for details.
268+
266269
All writing options will per default write to the repository specific
267270
configuration file. Note that this also affects options like `--replace-all`
268271
and `--unset`. *'git config' will only ever change one file at a time*.

0 commit comments

Comments
 (0)