Skip to content

Commit 71ae340

Browse files
committed
Clarify the location of the Windows-specific ProgramData config
On Windows, there is no (single) `/etc/` directory. To address that, in conjunction with the libgit2 project, Git for Windows introduced yet another level of system-wide config files, located in C:\ProgramData (and the equivalent on Windows XP). Let's spell this out in the documentation. This closes #470 (because there was no reaction in three months in that Pull Request). Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b8b6074 commit 71ae340

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Documentation/git-config.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,11 @@ $GIT_DIR/config::
282282
Repository specific configuration file.
283283

284284
On Windows, as there is no central `/etc/` directory, there is yet another
285-
config file, intended to contain settings for *all* Git-related software
286-
running on the machine. Consequently, this config file takes an even lower
287-
precedence than the `$(prefix)/etc/gitconfig` file.
285+
config file (located at `$PROGRAMDATA/Git/config`), intended to contain
286+
settings for *all* Git-related software running on the machine. Consequently,
287+
this config file takes an even lower precedence than the
288+
`$(prefix)/etc/gitconfig` file. Typically `$PROGRAMDATA` points to
289+
`C:\ProgramData`.
288290

289291
If no further options are given, all reading options will read all of these
290292
files that are available. If the global or the system-wide configuration

0 commit comments

Comments
 (0)