title: Prevent EOL normalization for CSV files
body: <p>I have a source repository that is used both from <strong>Windows</strong> and <strong>Linux</strong>.</p>
  
  <p>I know that <strong>Git</strong> will automatically convert <strong>EOL</strong> to the local standard: <strong>\r\n</strong> on Windows and <strong>\n</strong> on Linux.</p>
  
  <p>This is not an issue for source files.</p>
  
  <p>But I have some <strong>CSV files</strong> that use a fixed format with a given EOL character (<strong>\r\n</strong>) which should not be changed, but Git converts them too, breaking some code.</p>
  
  <p>I've tried to prevent EOL conversions for CSV files by creating a <strong>.gitattributes</strong> file at the root, next to the <strong>.gitignore</strong> file, with the following content:</p>
  
  <pre><code>*.csv    -text
  </code></pre>
  
  <p>I've applied what I've understood from: <a href="http://git-scm.com/docs/gitattributes" rel="noreferrer">http://git-scm.com/docs/gitattributes</a></p>
  
  <p>But Git is still converting <strong>\r\n</strong> to <strong>\n</strong> on Linux.</p>
  
  <p>Should I play with another setting like auto.crlf?</p>
  
  <p>Note that I have limited control of the Linux local repository as it is managed by the <strong>continuous integration server Jenkins</strong>.</p>
  
  <p>Thanks for any input.</p>