[英]Where is this value in my configuration coming from?
当我使用git config --list
检查--system
,-- --global
和--local
中core.autocrlf
的值时,这是我得到的:
$ git config --system --list | grep autocrlf
core.autocrlf=true
$ git config --global --list | grep autocrlf
core.autocrlf=true
$ git config --local --list | grep autocrlf
没关系
但是,当我对所有内容(没有--system
,-- --global
或--local
)执行此操作时,我会感到奇怪:
$ git config --list | grep autocrlf
core.autocrlf=false
core.autocrlf=true
core.autocrlf=true
如果第一个false
值不在我的--system
,-- --global
或--local
, --global
--local
?
我正在使用Windows的SourceTree随附的git版本。
如您所知,配置可以在计算机上的3个位置下找到。
Sourcetree也有自己的git版本,可以使用。 如果使用它而不是系统git,则会有另一个.gitconfig文件。
这就是您的价值观的来源。
在Windows中,您可以找到以下内容:
C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe.config
它不是通常的git config,而是一个XML文件,sourceTree从中读取值。
例如,这是此文件中的一项:
<setting name="DiffWhiteSpaceIgnored" serializeAs="String">
<value>False</value>
</setting>
您可以在这里设置:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.