title: git trying to convert LF to CRLF on ubuntu with core.autocrlf set to true
body: <p>I'm using git on ubuntu with autocrlf set to true. My editor is configured to use LF as end-of-line character. After I edited a file and did </p>
  
  <pre><code>git add .
  </code></pre>
  
  <p>I got :</p>
  
  <pre><code>warning: LF will be replaced by CRLF in file1.txt. (1)
  The file will have its original line endings in your working directory. (2)
  </code></pre>
  
  <p>As to (1), why git would want to convert my LF in my file into CRLF? Should it work exactly the way around that only when your file contains CRLF and only then git will try to convert CRLF to LF? </p>
  
  <p>As to (2), does that mean the file I'm looking at will still go with only LF but the snapshot in git's staging area is converted? </p>