Please note that git uses LF as an internal representation of EOL.
This means that in your case, the *.csv files has got changed when they were added/committed.
So the solution goes roughly like this:
- remove all the *.csv files, commit that change
- edit .gitattributes, commit
- add back all the *.csv files, commit again
Actually, it can be all made in one commit, with the following commands:
### ... update .gitattributes
git rm --cached '*.csv'
### ... find -name '*.csv' -print0| xargs -0 unix2dos
git add '*.csv'
git add .gitattributes
git commit
Explanation:
git rm --cached
removes all csv files from index, leaving them on the disk;- ensure the files have CRLF line endings (I'm using
unix2dos
as an example) git add '*.csv'
adds them back, this time without any transformation, according to new version of .gitattributes