我正试图设定core.autocrlf=true.但是在执行git config --global core.autocrlf true输出后git config -l显示这两行
core.autocrlf=false
... other settings ...
core.autocrlf=true
Run Code Online (Sandbox Code Playgroud)
为什么这样,我怎样才能确保autocrlf正确设置true?
Von*_*onC 11
你可以用Git 2.8+了解更多:
git config -l --show-origin
Run Code Online (Sandbox Code Playgroud)
这样可以让您更好地了解这些设置的来源.
本地配置覆盖覆盖系统设置的全局设置.
请参阅" 我的Git配置中的设置来自哪里? "中的具体示例.
Xavi Montero指出Pro Book" 入门 - 第一次Git设置 "提到:
如果您使用的是2.x版或更高版本的Git for Windows,那么还有一个系统级配置文件
C:\Documents and Settings\All Users\Application Data\Git\config在Windows XP上,和- 在
C:\ProgramData\Git\configWindows Vista和更高版本.此配置文件只能由
git config -f <file>管理员更改.