title: How do I stop git from adding carriage returns when cloneing a repo onto windows?
body: <p>I still have XP on my laptop and have installed Git so that I can do some work on it. When I clone a repository from my server (which is linux) it automatically adds carriage returns onto each line. So now Git thinks that every file has been modified when, in fact, they haven't.</p>
  
  <p>I've tried adding the following lines to my .gitconfig file to no avail</p>
  
  <pre><code>[core]
      autocrlf = true
  </code></pre>
  
  <p>or</p>
  
  <pre><code>[core]
      autocrlf = input
  </code></pre>
  
  <p>I have also tried running</p>
  
  <pre><code>git config core.autocrlf &lt;value&gt;
  </code></pre>
  
  <p>within the repository in question, and then reset hard to head. This also didn't seem to work.
  Any help would be appreciated.</p>