Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active April 16, 2019 02:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/56efb57ae468d0c2db624ead354172a9 to your computer and use it in GitHub Desktop.
Save guitarrapc/56efb57ae468d0c2db624ead354172a9 to your computer and use it in GitHub Desktop.
Force `LF` End of line (EOL) for Windows. Even git config specify autocrlf=true, but repository force to be LF via smudge filter.
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
* text=auto eol=lf
*.jpg binary
*.png binary
[core]
autocrlf=true
@guitarrapc
Copy link
Author

or core.autocrlf=false with editorconfig.
https://gist.github.com/starise/a35b04a31cccc8538d4718325ffe6b48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment