美文网首页
git错误:The file will have its ori

git错误:The file will have its ori

作者: Amy_LuLu__ | 来源:发表于2019-03-04 14:24 被阅读0次

原文:解决 The file will have its original line endings in your working directory

首先出现这个问题主要原因是:我们从别人github地址上通过git clone下载下来,而又想git push到我们自己的github上,那么就会出现上面提示的错误信息

此时需要执行如下代码:

git rm -r --cached .
git config core.autocrlf false

git add .

. 代表当前目录

相关文章

网友评论

      本文标题:git错误:The file will have its ori

      本文链接:https://www.haomeiwen.com/subject/soqiuqtx.html