With Git, how do I turn off the “LF will be replaced by CRLF” warning

前端 未结 6 1687
臣服心动
臣服心动 2020-12-12 09:58

With Git, when using the autocrlf = true flag, a warning is still given when line-endings are changed.

I understand what the warning is for, and how to

6条回答
  •  轮回少年
    2020-12-12 10:34

    You should use core.autocrlf input and core.eol input. Or just don't let git change the line endings at all with autocrlf false and get rid of highlighting of crlfs in diffs, etc with core.whitespace cr-at-eol.

    Hope this helps

提交回复
热议问题