首页 > 代码库 > LF will be replaced by CRLF in git add

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