With Git, when using the autocrlf = true flag, a warning is still given when line-endings are changed.
I understand what the warning is for, and how to turn off the line-ending flag, but how do I turn off the warning itself?
With Git, when using the autocrlf = true flag, a warning is still given when line-endings are changed.
I understand what the warning is for, and how to turn off the line-ending flag, but how do I turn off the warning itself?
Funnily enough, I had applied both configs like explained here, and my .gitconfig file contained these 2 lines:
[core]
autocrlf = false
whitespace = cr-at-eol
Yet I got the warning. Now just to try I commented out both lines and the warning actually disappeared. No idea why I put them in the first place however...
Setting "core.safecrlf false" works. However, after I changed the value to 'true' The output changes from 'warning' to 'fatal' as shown below.
$ git add -A
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory
$ git config --global core.safecrlf false
$ git reset
$ git config --global core.safecrlf true
$ git add -A
fatal: LF would be replaced by CRLF in .gitignore
$