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