git add时候报错:LF will be replaced by CRLF
git add时候报错:LF will be replaced by CRLF
报错如下错误
js
warning: LF will be replaced by CRLF
fatal: CRLF would be replaced by LF
core.autocrlf 设置成false
#备注可以使用--global 也可以不实用,影响不大
git config --global core.autocrlf true #这个是转换,也是默认值
git config --global core.autocrlf input #貌似是上库转换,从库中迁出代码不转换
git config --global core.autocrlf false #这个一般是window上的,不转换
Written on September 1, 2015