Skip to content

Instantly share code, notes, and snippets.

View bradInside's full-sized avatar

Aurelien bradInside

  • Gibmedia
  • Toulouse
View GitHub Profile
@bradInside
bradInside / gist:e6ff5385f3706ab620ec3202844717c9
Created December 10, 2019 08:33
Force LF on Windows / STorm instead of crlf
The proper way to get LF endings in Windows is to first set core.autocrlf to false:
git config --global core.autocrlf false
You need to do this if you are using msysgit, because it sets it to true in its system settings.
Now git won’t do any line ending normalization. If you want files you check in to be normalized, do this: Set text=auto in your .gitattributes for all files:
* text=auto