@@ -235,8 +235,16 @@ FILES
235
235
If not set explicitly with `--file`, there are four files where
236
236
'git config' will search for configuration options:
237
237
238
+ $PROGRAMDATA/Git/config::
239
+ (Windows-only) System-wide configuration file shared with other Git
240
+ implementations. Typically `$PROGRAMDATA` points to `C:\ProgramData`.
241
+
238
242
$(prefix)/etc/gitconfig::
239
243
System-wide configuration file.
244
+ (Windows-only) This file contains only the settings which are
245
+ specific for this installation of Git for Windows and which should
246
+ not be shared with other Git implementations like JGit, libgit2.
247
+ `--system` will select this file.
240
248
241
249
$XDG_CONFIG_HOME/git/config::
242
250
Second user-specific configuration file. If $XDG_CONFIG_HOME is not set
@@ -253,14 +261,6 @@ $XDG_CONFIG_HOME/git/config::
253
261
$GIT_DIR/config::
254
262
Repository specific configuration file.
255
263
256
- On Windows, as there is no central `/etc/` directory, there is yet another
257
- config file (located at `$PROGRAMDATA/Git/config`), intended to contain
258
- settings for *all* Git-related software running on the machine. Consequently,
259
- this config file takes an even lower precedence than the
260
- `$(prefix)/etc/gitconfig` file. Typically `$PROGRAMDATA` points to
261
- `C:\ProgramData` (on Windows XP the equivalent in `$ALLUSERSPROFILE` is used,
262
- i.e. `C:\Documents and Settings\All Users\Application Data\Git\config`).
263
-
264
264
If no further options are given, all reading options will read all of these
265
265
files that are available. If the global or the system-wide configuration
266
266
file are not available they will be ignored. If the repository configuration
0 commit comments