当前位置:   article > 正文

用git下载github项目失败werning : Clone succeeded, but checkout failed._warning: clone succeeded, but checkout failed. you

warning: clone succeeded, but checkout failed. you can inspect what was chec

用git下载github上的大项目时,本地空间也足够,也安装LFS了,可还没有下载完就失败了,如下所示:

werning : Clone succeeded, but checkout failed.
you can inspect what was checked out with ' git status'
and retry the checkout with 'git checkout -f HEAD

werning:复制成功,但检出失败
您可以检查“ git status”中已签出的内容
然后使用'git checkout -f HEAD重试签出

遇到这种情况,用以下指令并没有什么用:

  1. git status
  2. git config core.longpaths true
  3. git checkout -f .

有用的办法,只能重新下载,先输入以下指令:

git config --global core.longpaths true

然后删除全部文件,包括 .git 文件,最后重新下载开始:

  1. git init
  2. git clone 项目ssh地址

 

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

闽ICP备14008679号