Windows git添加关于行尾的警告,core.autocrlf为false

Windows git添加关于行尾的警告,core.autocrlf为false,windows,git,line-endings,Windows,Git,Line Endings,我在网上读到的所有信息都告诉我这不可能: C:\Users\eric_\Code\range-v3>git add conanfile.py.in warning: LF will be replaced by CRLF in conanfile.py.in. The file will have its original line endings in your working directory. C:\Users\eric_\Code\range-v3>git config

我在网上读到的所有信息都告诉我这不可能:

C:\Users\eric_\Code\range-v3>git add conanfile.py.in
warning: LF will be replaced by CRLF in conanfile.py.in.
The file will have its original line endings in your working directory.

C:\Users\eric_\Code\range-v3>git config core.autocrlf
false
为什么我不能让git忽略文件中的行尾

编辑:我在该目录中有一个
.gittributes
文件,其中包含以下内容:

*.hpp text
*.cpp text
*.txt text
*.html text
*.md text
*.yml text
*.xml text
*.in text
.gitattributes text
.gitignore text

*.cmd -text
*.sln -text
*.vcxproj -text
*.vcxproj.filters -text

您在该存储库中是否有
.gittributes
文件?是的,我已使用
.gittributes
文件的内容更新了我的问题。您的
.gittributes
覆盖了您的
核心.autocrlf
,该文件很旧,不应依赖。您的
.gittributes
指定
文本
,这意味着应该执行CRLF转换。如果不需要,请设置
-text