LF will be replaced by CRLF in git add

Posted qq59538308

tags:

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

git add 出现这样的提示:

LF will be replaced by CRLF in qinqiu.txt.

这个时候要:

  1. $ rm -rf .git  // 删除.git  
  2. $ git config --global core.autocrlf false  //禁用自动转换   
  3. $ git init
  4. $ git add .

 

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

GIT warning: LF will be replaced by CRLF.

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

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

git warning: LF will be replaced by CRLF