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

sent-hil picture sent-hil · Jun 28, 2011 · Viewed 45.9k times · Source

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 turn off the line-ending flag, but how do I turn off the warning itself?

Answer

Chronial picture Chronial · Feb 1, 2013

You can turn off the warning with

git config --global core.safecrlf false

(This will only turn off the warning, not the function itself.)