Skip to content

Instantly share code, notes, and snippets.

@danielpereirabp
Created July 20, 2017 12:37
Show Gist options
  • Save danielpereirabp/22d98613a2dec74e01ed4c7e42f64c3b to your computer and use it in GitHub Desktop.
Save danielpereirabp/22d98613a2dec74e01ed4c7e42f64c3b to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment