I have already read the Git documentation discussed in this answer (LF will be replaced by CRLF in git - What is that and is it important?) but I don't understand what it means for my situation.
I have LF files which were introduced by a tool into my git checkout on Windows. When I tried to commit them, I got the warning warning: LF will be replaced by CRLF in [file]
.
git config core.autocrlf
is true on this machine. I committed anyway. The line endings on Windows are still LF. Then I checked out the file on a Linux machine where git config core.autocrlf
doesn't appear to be set. I inspected the line endings there, and they were also LF.
So what I don't understand is, WHERE is it saying that LF will be replaced by CRLF? Does it mean, next time I pull a change to the file (which is committed by somebody from another machine) the line endings will be converted?
Also - what line endings does Git use in its internal repo?