我找到了这个答案
http://stackoverflow.com/questions/2114111/ddg#2115116
我用过
git config --list --show-origin
然后手动编辑文件(从提升的记事本+中)。我曾经
file:"C:\\ProgramData/Git/config" core.autocrlf=true
file:C:/Users/Chloe/.gitconfig core.autocrlf=false
file:C:/Users/Chloe/.gitconfig core.editor=/C/Program Files/Notepad++/notepad++.exe
file:C:/Users/Chloe/.gitconfig core.edit=C:\\Program Files\\Notepad++\\notepad++.exe
总的来说,它在4个地方寻找:
C:\ProgramData\Git\config
,请
C:\Program Files\Git\mingw64\etc\gitconfig
,
C:/Users/Chloe/.gitconfig
,请
.git/config
.