在执行命令 git commit --all -m  '说明' 时报错“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 .

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

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

希望对你有帮助!

 

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-14
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案