当前位置:   article > 正文

git使用新手入门笔记——解决The file will have its original line endings in your working directory_git 添加 the file will have its original line ending

git 添加 the file will have its original line endings in your working direct

参考:https://www.cnblogs.com/lovebing/p/7121754.html

 

今天使用 git add .往库里传东西的时候一直报这个错,The file will have its original line endings in your working directory,网上好多人说要删除缓存,试了但是没用。

删除缓存代码:

git rm -r -f --cached .

 然后找到了这篇https://www.cnblogs.com/lovebing/p/7121754.html,输入下面这行,add成功。感谢大佬。

  1. git config --global core.autocrlf false
  2. #设置禁用换行

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/572077
推荐阅读
相关标签
  

闽ICP备14008679号