Disable “LF will be replaced by CLRF” warning in Git on Windows

If you’ve ever used Git in windows, you may have seen something like this every time you add files to Git:


warning: LF will be replaced by CRLF in www/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in www/templates/dash.html.
The file will have its original line endings in your working directory.

If you want to turn it off, type this:


git config --global core.safecrlf false

Done.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *