Why are files seen as modified after fresh clone? When is git add --renormalize . used?
问题 I have a problem with files which are seen as modified after a fresh git clone. Usecase in my repo: all text files shall have eol=LF , except *.txt files which shall have eol=CRLF . Here's how .gitattributes looks like: * text=auto *.txt text eol=crlf *.png binary *.jpg binary *.bmp binary Here's my tests: Test 1 new repo with 2 .txt files (LF.txt and CRLF.txt) LF.txt : eol=LF (end of line is LF in the whole file) CRLF.txt : eol=CRLF (end of line is CRLF in the whole file) add, commit, push