warning: LF will be replaced by CRLF in README.md. The file will have its original line endings in your working directory code example
Example 1: warning: LF will be replaced by CRLF
git config --global core.autocrlf true
Example 2: LF will be replaced by CRLF in assets
git config core.autocrlf true
Example 3: lf will be replaced by crlf
Linux and MacOS: use characters as in file
$ git config --global core.autocrlf input
Windows: deactivate the automatic conversion to CRLF
$ git config --global core.autocrlf false
Example 4: warning: LF will be replaced by CRLF
git config core.autocrlf true
Example 5: fatal: LF would be replaced by CRLF in package.json
$ git config --global core.autocrlf false
$ git config --global core.safecrlf false
Example 6: warning: LF will be replaced by CRLF in
$ git config --global core.autocrlf input