-
Add to
.editorconfig
in the root folder[*] end_of_line = lf insert_final_newline = true
-
Add to
.gitattributes
in the root folder* text eol=lf
-
Run
git config core.autocrlf false
-
Run
git add --renormalize .
in terminal -
In IntelliJ IDEA, select the root folder in the project view and then
File -> File Properties -> Line Separators -> LF Unix and macOS (\n)
Last active
March 18, 2024 15:37
-
-
Save JavierSegoviaCordoba/f6bc23f1149a4cad622d8065992ef853 to your computer and use it in GitHub Desktop.
Configure git and IntelliJ to force the usage of LF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment