TL;DR: C:\Users\All Users\Git\config
.
See git-for-windows PR 470
On Windows, as there is no central /etc/
directory, there is yet another config file (located at %PROGRAMDATA%\Git\config
), intended to contain
settings for all Git-related software running on the machine.
Consequently,
this config file takes an even lower precedence than the $(prefix)/etc/gitconfig
file.
You can check that (with git 2.8+, March 2016), by typing
git config --list --show-origin
See "Where do the settings in my Git configuration come from?"
As mentioned in git config
FILES, git is looking for values (or default values if not found) of configs in 3 places (outside the git repo itself)
$(prefix)/etc/gitconfig
System-wide configuration file.
$XDG_CONFIG_HOME/git/config
Second user-specific configuration file.
If $XDG_CONFIG_HOME
is not set or empty, $HOME/.config/git/config
will be used. Any single-valued variable set in this file will be overwritten by whatever is in ~/.gitconfig
. It is a good idea not to create this file if you sometimes use older versions of Git, as support for this file was added fairly recently.
~/.gitconfig
User-specific configuration file. Also called "global" configuration file.
But a quick process monitor mentions a fourth place (again, outside a git repo itself)

In C:\ProgramData\Git
, I see the extra values:
C:\ProgramData\Git>more config
[core]
symlinks = false
autocrlf = true
[color]
diff = auto
status = auto
branch = auto
interactive = true
[pack]
packSizeLimit = 2g
[help]
format = html
[http]
sslCAInfo = C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
[sendemail]
smtpserver = /bin/msmtp.exe
[diff "astextplain"]
textconv = astextplain
[rebase]
autosquash = true
As mentioned in "What is the significance of the ProgramData
folder in Windows?", that folder is the one from All Users
:
C:\Users\All Users\Git>dir
Volume in drive C has no label.
Directory of C:\Users\All Users\Git
23/10/2015 16:36 <DIR> .
23/10/2015 16:36 <DIR> ..
23/10/2015 16:36 350 config