I am working in IntelliJ 15.0.3
and using Git through Git Bash (to commit and push changes). When I fetch
file from remote git repository
it contains different line separators (mixed mode or how it's called). I mean that some lines ends with CRLF
and some lines ends with LF
(the same file).
When I make change in IDEA - file is automatically saved and all line separators are reduced (changed) to IDEA default line separator (LF
for me).
And git treats these changes as changes to the file, as a result I commit file with a lot of changes like these:
- some line
+ some line
Because some line [CRLF]
was changed to some line [LF]
.
How to configure Git
to ignore this or how to configure IntelliJ IDEA
to leave file in this mix-mode? I don't want to commit changes when there are no changes.