首页 > 其他 > 详细

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

时间:2019-09-25 22:50:06      阅读:130      评论:0      收藏:0      [点我收藏+]

在执行命令 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

希望对你有帮助!

 

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

原文:https://www.cnblogs.com/zhahuhu/p/11587491.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!