报错:
The file will have its original line endings in your working directory
默认支持LF。windows commit代码时git会把CRLF转LF,update代码时LF换CRLF。
git add:添加至暂存区,有时在终端操作这个会提示:
warning: LF will be replaced by CRLF ...
The file will have its original line endings in your working directory
方式1解决:
git rm -r --cached .
git config core.autocrlf false
git add .
git commit -m 'Array老师代码提交'
git push -u origin "master"
方式2:
将.git隐藏文件夹删除,会丢失一切git相关记录