git warning: LF will be replaced by CRLF in 解决办法

Posted 徐昊Xiho

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git warning: LF will be replaced by CRLF in 解决办法相关的知识,希望对你有一定的参考价值。

windows中的换行符为 CRLF, 而在Linux下的换行符为LF,所以在执行add . 时出现提示,

git warning: LF will be replaced by CRLF in 解决办法:

$ rm -rf .git  // 删除.git  
$ git config --global core.autocrlf false  //禁用自动转换    

然后重新执行:

$ git init    
$ git add .  

以上是关于git warning: LF will be replaced by CRLF in 解决办法的主要内容,如果未能解决你的问题,请参考以下文章

git warning: LF will be replaced by CRLF in 解决办法

git warning: LF will be replaced by CRLF in 解决办法

warning: LF will be replaced by CRLF 问题解决

git warning: LF will be replaced by CRLF

git warning: LF will be replaced by CRLF in 解决办法

windows(hexo)使用git时出现:warning: LF will be replaced by CRLF