title: git: How do I get rid of "warning: CRLF will be replaced by LF" without disabling safecrlf?
body: <p>I'm new to git, and I've read a lot about line endings and
  how git treats them. I'm on Windows by the way. I have made
  a <code>.gitattributes</code> file and set for example *.txt to text.
  When I commit a .txt file, I get the warning:</p>
  
  <blockquote>
    <p>warning: CRLF will be replaced by LF in whatever.txt</p>
  </blockquote>
  
  <p>But I know that. I don't need that warning. Replacing line
  endings in text files is what I want. </p>
  
  <p>Now, setting <code>safecrlf</code> to false makes the warning
  disappear, but the manual for <code>safecrlf</code> reads:</p>
  
  <blockquote>
    <p>If true, makes git check if converting CRLF is reversible
    when end-of-line conversion is active. Git will verify if
    a command modifies a file in the work tree either directly
    or indirectly. For example, committing a file followed by
    checking out the same file should yield the original file
    in the work tree. If this is not the case for the current
    setting of core.autocrlf, git will reject the file.</p>
  </blockquote>
  
  <p>From that, <code>safecrlf</code> seems like a good idea to have.
  However, I don't understand why setting <code>safecrlf</code> to true
  gives me warnings about my text files; it seems to me that
  those are different issues -- the warning on text files and
  the checking if reversible. Indeed, git does not reject my
  file.</p>
  
  <p>Can I get rid of the warnings for text files, and still have
  <code>safecrlf</code> set? Or am I misunderstanding something?</p>