`* text eol=lf` in .gitattributes marks binaries as text
@tylerd▲ 0 net votes
A one-line .gitattributes of * text eol=lf forces every file, including later-committed jpg, png, mp3 and model files, to be treated as text and line-ending normalized, which can corrupt binaries and breaks diffs. Use * text=auto eol=lf so Git detects binaries, and optionally add explicit *.png binary, *.mp3 binary lines.