git add .时提示错误,无法添加。报错如下
$ git add .
warning: LF will be replaced by CRLF in uniapp-sdk/components/gprint/encoding-indexes.js.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in uniapp-sdk/components/gprint/encoding.js.
The file will have its original line endings in your working directory
解决方法
方法1:删除缓存
git rm -r -f --cached .
方法2:设置禁用换行
git config --global core.autocrlf false

git从阿里云效克隆仓库的
git push异常:You are not allowed to push code to this project.
git怎么退出merging?git merging 怎么处理
git开发分支本地分支合并远程分支