Prior questions like Can't use git: "git fatal: unknown error occurred while reading the configuration files" talk about this error message:
G:\dev\some-repo> git status
fatal: unknown error occurred while reading the configuration files
…and answers go through various basic troubleshooting around finding config files, making sure those paths aren't directories, etc.
I've verified that my C:\Users\chas\.gitconfig
file is a file, and aside from that, all the configuration files can be read as far as I can tell -- or, at least, I see values from all of the locations I'm aware of:
$ git config -l --show-origin
fatal: error processing config file(s)
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" core.symlinks=false
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" core.autocrlf=true
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" color.diff=auto
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" color.status=auto
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" color.branch=auto
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" color.interactive=true
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" pack.packsizelimit=2g
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" help.format=html
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" http.sslcainfo=/ssl/certs/ca-bundle.crt
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" diff.astextplain.textconv=astextplain
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" rebase.autosquash=true
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" filter.lfs.clean=git-lfs clean -- %f
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" filter.lfs.smudge=git-lfs smudge -- %f
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" filter.lfs.process=git-lfs filter-process
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" filter.lfs.required=true
file:"G:\\Downloads\\Git\\mingw64/etc/gitconfig" credential.helper=manager
file:C:/Users/chas/.gitconfig user.name=Chas Emerick
file:C:/Users/chas/.gitconfig user.email=chas@cemerick.com
file:C:/Users/chas/.gitconfig push.default=matching
Note:
fatal: error processing config file(s)
message preceding all of the config entries- All of the above happens whether I'm in a repo or not
- that my user-level file appears to be getting consumed properly
- removing
C:\Users\chas\.gitconfig
entirely does not resolve the problem - The listing above is from using a self-contained/"portable" git executable/environment and using git-bash; the same problem persists when git is installed, and using git-bash from there, or git via
cmd.exe
. - Git version: 2.15.0; Windows 10 Pro, version 1709, OS build 16299.19
Help?