解决git报错“The file will have its original line endings in your working directory”的方法

在执行命令 git commit --all -m  '说明' 时报错“The file will have its original line endings in your working directory”

经过查询后发现出现这个问题主要缘由是:git

咱们从别人github地址上经过git clone下载下来,而又想git push到咱们本身的github上,那么就会出现上面提示的错误信息

此时只须要执行以下代码:github

    git rm -r --cached .spa

    git config core.autocrlf false.net

    git add .blog

注意 这里是有 "." 的,  ". " 表明当前目录

参考连接:https://blog.csdn.net/liereli/article/details/80824804it

但愿对你有帮助!file

相关文章
相关标签/搜索