@@ -235,8 +235,16 @@ FILES
235235If not set explicitly with `--file`, there are four files where
236236'git config' will search for configuration options:
237237
238+ $PROGRAMDATA/Git/config::
239+ (Windows-only) System-wide configuration file shared with other Git
240+ implementations. Typically `$PROGRAMDATA` points to `C:\ProgramData`.
241+
238242$(prefix)/etc/gitconfig::
239243 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.
240248
241249$XDG_CONFIG_HOME/git/config::
242250 Second user-specific configuration file. If $XDG_CONFIG_HOME is not set
@@ -253,14 +261,6 @@ $XDG_CONFIG_HOME/git/config::
253261$GIT_DIR/config::
254262 Repository specific configuration file.
255263
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-
264264If no further options are given, all reading options will read all of these
265265files that are available. If the global or the system-wide configuration
266266file are not available they will be ignored. If the repository configuration
0 commit comments