In use today git add When you order , A warning pops up warning: LF will be replaced by CRLF in
******( A specific document )

<> reason

LF and CRLF They are all line breaks , But the difference is ,LF yes linux and Unix Line breaks for the system ,CRLF yes window
Line breaks for the system . This brings problems to cross platform collaborative projects , Which standard is used to save files ? git To solve this problem , Provides a ” Automatic line break conversion
“ Function of , And this function is set in ” Automatic mode “ That is, open state .
This newline conversion will automatically put your code into The way line breaks are different from your current operating system Convert to the line feed mode of the current system ( Namely LF and CRLF
Conversion between ), thus , When you submit the code , Even if you haven't modified a file , Also by git Think you've modified it , This will prompt "LF will be replaced by
CRLF in *****"

<> solve

The simplest way is to turn off the automatic transfer function .
Enter the command :git config core.autocrlf false ( Current only git Warehouse effective )
git config --global core.autocrlf false ( Global availability )

And then re submit the code .

Technology