 <p>If the global or local core.autocrlf setting is not getting the results that you want, you can set a git line ending attribute and force the result that you are looking for.</p> <pre><code># Set eol conversions on all text-based files to 'nothing' echo '* text' &gt;&gt; .gitattributes # Force git to re-scan dir rm .git/index git reset # Review current files git status </code></pre> <p>Note: Normally the eol setting would be:</p> <pre><code>* text=auto </code></pre>