How to see what type of line endings are already in git repository?

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)