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

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

你可能感兴趣的:(Disable “LF will be replaced by CLRF” warning in Git on Windows)