title: git ignore line endings
body: <p>I know that similar questions have been asked, but I still can't get it working.</p>
  
  <p>My project is shared among people using different operating systems, and I'm on OSX. Also, not everyone uses git yet and I end up sometimes having to commit changes of others.</p>
  
  <p>Sometimes, out of nowhere git says there are pending changes. Looking at the files they look identical:</p>
  
  <pre><code>@@ -1,6 +1,6 @@
  -&lt;Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
  -        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  -&gt;
  -    &lt;Deployment.Parts&gt;
  -    &lt;/Deployment.Parts&gt;
  -&lt;/Deployment&gt;
  +&lt;Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
  +        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  +&gt;
  +    &lt;Deployment.Parts&gt;
  +    &lt;/Deployment.Parts&gt;
  +&lt;/Deployment&gt;
  </code></pre>
  
  <p>I suspect those are line ending issue.</p>
  
  <p>[edit] One external diff tool specifically says: "status: 1 difference Line endings differ - left: Windows (CRLF), right: Unix (LF)"</p>
  
  <p>Following some of the online tips, my configuration looks like:</p>
  
  <pre><code>[core]
      excludesfile = /Users/nathanh/.gitignore_global
      autocrlf = input
      attributesfile = /Users/nathanh/.config/git/attributes
      whitespace = cr-at-eol
  </code></pre>
  
  <p>And my attributes file:</p>
  
  <pre><code># Ignore all differences in line endings
  *        -crlf
  </code></pre>
  
  <p>Why is it still showing me that the files are modified?</p>