Open Raruto opened 1 year ago
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 useslf
in the index, andw/crlf
means it usescrlf
in the working directory.
With Git client 2.16 and higher:
git add --renormalize .
This is a really annoying issue because the
.gitattributes
actually works fine (but some local older files or branches may still have a different encoding..).git
commands (ie. listing all localCRLF
files and convert all of them toLF
), If I only could remember how..