Make Git “LF will be replaced by CRLF” warnings go away

前端 未结 6 1151
旧时难觅i
旧时难觅i 2020-12-07 14:06

I have setup Git so it doesn\'t commit inconsistent line endings. The problem with that is a whole pile of files appear modified even though they are not. What do I type to

6条回答
  •  温柔的废话
    2020-12-07 14:47

    Only thing I can think of is to check if core.safecrlf is set to warn.

    git config --get core.safecrlf

    I think possible values are true, false, and warn. I believe that setting to false will resolve the warning, though it may not be a good idea.

提交回复
热议问题