CRLF to LF warning after fresh clone


#1

After doing a fresh clone of my fork, which is up to date with the original repo, I get for 39 files some warnings like:

warning: CRLF will be replaced by LF in src/libs/qmuparser/LICENSE_BSD.txt. The file will have its original line endings in your working directory.

warning: CRLF will be replaced by LF in src/libs/vgeometry/vellipticalarc.h. The file will have its original line` endings in your working directory.

It seems like git automatically converted Windows end of lines to Unix ones. As a result I have to commit those 39 files.

Did anyone have the same problem? I work with Ubuntu 16.04,


#2

I see that @slspencer already did a similar commit:

So i’ll just commit them as well to my fork.


#3

Yeah, the .gitignore file that was added included a global setting for CRLF. There’s more info here about Git and line endings (CRLF in windows, LF in linux)

Dealing with line endings - User Documentation


#4

Yes. Susan had already committed a few files with CRLF -> LF… a few others popped up so I switched the ending & committed them on my local.