码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-06-06 13:38:33      阅读:63      评论:0      收藏:0      [点我收藏+]

标签:通过   代码   git   bsp   原因   add   core   false   toc   

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

此时需要执行如下代码:

   

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

  

. 代表当前目录

---------------------
作者:badly1226
来源:CSDN
原文:https://blog.csdn.net/liereli/article/details/80824804
版权声明:本文为博主原创文章,转载请附上博文链接!

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

标签:通过   代码   git   bsp   原因   add   core   false   toc   

原文地址:https://www.cnblogs.com/kaerxifa/p/10984432.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!