在将repo复制到windows上时,如何阻止git添加回车符?

Rhi*_*rus 11 git git-config

我的笔记本电脑上还有XP,并安装了Git,以便我可以做一些工作.当我从我的服务器(也就是linux)克隆存储库时,它会自动将回车添加到每一行.所以现在Git认为每个文件都被修改过,实际上他们没有.

我尝试将以下行添加到我的.gitconfig文件中无济于事

[core]
    autocrlf = true
Run Code Online (Sandbox Code Playgroud)

要么

[core]
    autocrlf = input
Run Code Online (Sandbox Code Playgroud)

我也试过跑步

git config core.autocrlf <value>
Run Code Online (Sandbox Code Playgroud)

在有问题的存储库中,然后很难重置.这似乎也没有用.任何帮助,将不胜感激.

Joã*_*cus 12

为什么不"autocrlf = false?".