Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 1652867

Browse files
committed
Merge branch 'fa/maint-config-doc'
By Florian Achleitner * fa/maint-config-doc: Documentation/git-config: describe and clarify "--local <file>" option
2 parents 302af64 + c598c5a commit 1652867

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Documentation/git-config.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,15 @@ a "true" or "false" string for bool), or '--path', which does some
4444
path expansion (see '--path' below). If no type specifier is passed, no
4545
checks or transformations are performed on the value.
4646

47-
The file-option can be one of '--system', '--global' or '--file'
48-
which specify where the values will be read from or written to.
49-
The default is to assume the config file of the current repository,
50-
.git/config unless defined otherwise with GIT_DIR and GIT_CONFIG
51-
(see <<FILES>>).
47+
When reading, the values are read from the system, global and
48+
repository local configuration files by default, and options
49+
'--system', '--global', '--local' and '--file <filename>' can be
50+
used to tell the command to read from only that location (see <<FILES>>).
51+
52+
When writing, the new value is written to the repository local
53+
configuration file by default, and options '--system', '--global',
54+
'--file <filename>' can be used to tell the command to write to
55+
that location (you can say '--local' but that is the default).
5256

5357
This command will fail (with exit code ret) if:
5458

0 commit comments

Comments
 (0)