title: How can a file be committed with CRLF on git?
body: <p>I have a repository containing 5 files that have been committed with CRLF. I don't know how this happened, but on a clean checkout if I use this command it prints 5 files (out of hundreds): </p>
  
  <p><code>git grep -I --files-with-matches --perl-regexp '\r' HEAD</code></p>
  
  <p>Does anyone know how can I reproduce this issue? In other words what is a set of git settings that can lead to this situation?</p>