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

前端 未结 6 1697
臣服心动
臣服心动 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:36

    You're looking for the core.whitespace option (see git config --help for details).

    You can set this option like so:

    $ git config core.whitespace cr-at-eol
    

提交回复
热议问题