使用Git,如何关闭"LF将被CRLF替换"?警告 [英] With Git, how do I turn off the "LF will be replaced by CRLF" warning
本文介绍了使用Git,如何关闭"LF将被CRLF替换"?警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用Git时,使用autocrlf = true
标志时,更改行尾时仍会发出警告.
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?
推荐答案
您可以使用以下方法关闭警告
You can turn off the warning with
git config --global core.safecrlf false
(这只会关闭警告,而不是功能本身.)
(This will only turn off the warning, not the function itself.)
这篇关于使用Git,如何关闭"LF将被CRLF替换"?警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文