我正在使用Ubuntu 13.10 x64,并且在进行一个项目,一些开发人员在使用Windows。我最近更改了git配置
据我所知,如果我将
谢谢。
core.eol
为"lf",core.autocrlf
为"input",core.safecrlf
为"true"。从那时起,当我尝试将文件提交到我的本地存储库时,会出现以下错误:fatal: CRLF would be replaced by LF in ......
据我所知,如果我将
core.eol
设置为"lf"并将core.autocrlf
设置为"input",git将自动将CRLF转换为LF,但为什么会出现此错误?如何解决这个问题?谢谢。
git diff
的输出中:http://git.661346.n2.nabble.com/git-diff-returns-fatal-error-with-core-safecrlf-is-set-to-true-td7590136.html - VonCcore.autocrlf
设置为 input,为什么 Git 不能将 CRLF 转换为 LF? - aserww106git config core.eol
更改为lf
和core.autocrlf
更改为input
”,这不会改变已经存在的文件。 这会影响未来的git pull
。 当前的文件仍然是CRLF格式,如果修改了,则尽可能转换为LF格式,如果无法转换,则会触发您提到的错误消息。 - VonC