Skip to content

Commit 5ecc4b5

Browse files
committed
Merge branch 'rr/maint-tilde-markup-in-doc'
* rr/maint-tilde-markup-in-doc: config doc: quote paths, fixing tilde-interpretation
2 parents f1093b0 + 5ff0c0e commit 5ecc4b5

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Documentation/git-config.txt

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,29 +96,31 @@ OPTIONS
9696
names are not.
9797

9898
--global::
99-
For writing options: write to global ~/.gitconfig file rather than
100-
the repository .git/config, write to $XDG_CONFIG_HOME/git/config file
101-
if this file exists and the ~/.gitconfig file doesn't.
99+
For writing options: write to global `~/.gitconfig` file
100+
rather than the repository `.git/config`, write to
101+
`$XDG_CONFIG_HOME/git/config` file if this file exists and the
102+
`~/.gitconfig` file doesn't.
102103
+
103-
For reading options: read only from global ~/.gitconfig and from
104-
$XDG_CONFIG_HOME/git/config rather than from all available files.
104+
For reading options: read only from global `~/.gitconfig` and from
105+
`$XDG_CONFIG_HOME/git/config` rather than from all available files.
105106
+
106107
See also <<FILES>>.
107108

108109
--system::
109-
For writing options: write to system-wide $(prefix)/etc/gitconfig
110-
rather than the repository .git/config.
110+
For writing options: write to system-wide
111+
`$(prefix)/etc/gitconfig` rather than the repository
112+
`.git/config`.
111113
+
112-
For reading options: read only from system-wide $(prefix)/etc/gitconfig
114+
For reading options: read only from system-wide `$(prefix)/etc/gitconfig`
113115
rather than from all available files.
114116
+
115117
See also <<FILES>>.
116118

117119
--local::
118-
For writing options: write to the repository .git/config file.
120+
For writing options: write to the repository `.git/config` file.
119121
This is the default behavior.
120122
+
121-
For reading options: read only from the repository .git/config rather than
123+
For reading options: read only from the repository `.git/config` rather than
122124
from all available files.
123125
+
124126
See also <<FILES>>.
@@ -218,9 +220,9 @@ $(prefix)/etc/gitconfig::
218220

219221
$XDG_CONFIG_HOME/git/config::
220222
Second user-specific configuration file. If $XDG_CONFIG_HOME is not set
221-
or empty, $HOME/.config/git/config will be used. Any single-valued
223+
or empty, `$HOME/.config/git/config` will be used. Any single-valued
222224
variable set in this file will be overwritten by whatever is in
223-
~/.gitconfig. It is a good idea not to create this file if
225+
`~/.gitconfig`. It is a good idea not to create this file if
224226
you sometimes use older versions of Git, as support for this
225227
file was added fairly recently.
226228

0 commit comments

Comments
 (0)