You can use this command:
git ls-files --eol
It will output one line per file with the following information:
i/lf w/crlf attr/text=auto eol=lf file.txt
In that example, i/lf
means that the file uses lf
in the index, and w/crlf
means it uses crlf
in the working directory.