according to Force LF line endings using .gitattributes without losing automatic text/binary inference? when I set my .gitattributes to contain only
* text=auto
* text eol=lf
then all textfiles should be converted to LF line endings and binaries should be untouched - that's what I want. But somehow, binary files are not being detected properly here. See this output of git bash console under Windows:
$ git add .
warning: CRLF will be replaced by LF in clip2txt.exe.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in raw.png.
The file will have its original line endings in your working directory
warning: CRLF will be replaced by LF in test.
The file will have its original line endings in your working directory
I would have expected, that raw.png and clip2txt.exe are being ignored as they are binaries. The file test will be proper converted, that is fine.
Have I missed something here?` thank you, br Alex
If anyone is looking into this, I mark it as answered:
Solution was to set .gitattributes to
* text=auto eol=lf
Thanks to @phd