Git and IntelliJ lines separator issue
<p>I am working in <code>IntelliJ 15.0.3</code> and using Git through Git Bash (to commit and push changes). When I <code>fetch</code> file from remote git repository
it contains different line separators (mixed mode or how it's called).  I mean that some lines ends with <code>CRLF</code> and some lines ends with <code>LF</code> (the same file).</p>

<p>When I make change in IDEA - file is automatically saved and all line separators are reduced (changed) to IDEA default line separator (<code>LF</code> for me).</p>

<p>And git treats these changes as changes to the file, as a result I commit file with a lot of changes like these:</p>

<pre><code>- some line
+ some line
</code></pre>

<p>Because <code>some line [CRLF]</code> was changed to <code>some line [LF]</code>. </p>

<p><strong>How to configure <code>Git</code> to ignore this or how to configure <code>IntelliJ IDEA</code> to leave file in this mix-mode?</strong> I don't want to commit changes when there are no changes.</p>