fatal: LF would be replaced by CRLF in package.json code example

Example 1: warning: LF will be replaced by CRLF

git config --global core.autocrlf true

Example 2: warning: LF will be replaced by CRLF in package-lock.json. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in package.json. The file will have its original line endings in your working directory

git config core.autocrlf true

Example 3: fatal: LF would be replaced by CRLF in package.json

$ git config --global core.autocrlf false
$ git config --global core.safecrlf false

Example 4: warning: LF will be replaced by CRLF in

$ git config --global core.autocrlf input

Tags:

Misc Example