I work in IntelliJ 15.0.3 and using Git via Git Bash (to commit and push changes). When I fetch file from a remote Git repository, it contains different line separators (mixed mode or whatever it's called). I mean, some lines end in CRLF , and some lines end in LF (same file).
When I make changes to IDEA, the file is automatically saved, and all line separators are reduced (changed) to the default line separator IDEA ( LF for me).
And Git treats these changes as changes to the file, as a result, I commit the file with changes such as these:
- some line + some line
Because some line [CRLF] been changed to some line [LF] .
How do I configure Git ignore this or how do I configure IntelliJ IDEA to leave the file in this mixing mode? I do not want to commit changes when there are no changes.
git intellij-idea
john
source share