+9 votes
1 view
in Devops and Agile by (20k points)

When I create a new rails application I'm seeing a warning in git about LF replacement. I do git init git add .

and then boom! I see this pop up for almost all files. I usually just keep going and build my application and it disappears after many changes to files.

Example:

The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in Gemfile.

The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in Gemfile.lock.

The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in README.

What's the difference between LF and CRLF?

Should I be concerned about this in the long run or just ignore it and keep going as I usually do?

1 Answer

+12 votes
by (28.4k points)
selected by
 
Best answer

Use the following command to turn off the warning:

git config --global core.safecrlf false

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...