title: How to normalize working tree line endings in Git?
body: <p>I have cloned a repository that had inconsistend line endings. I have added a <code>.gitattributes</code> that sets the text attribute for the files I want to normalize. Now when I commit changes I get the message:</p>
  
  <pre><code>warning: CRLF will be replaced by LF in FILE.
  The file will have its original line endings in your working directory.
  </code></pre>
  
  <p>How can I make git normalize my working copy of the file for me? Preferably I would like git to normalize the entire working tree.</p>