赞
踩
用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重试签出
遇到这种情况,用以下指令并没有什么用:
- git status
- git config core.longpaths true
- git checkout -f .
有用的办法,只能重新下载,先输入以下指令:
git config --global core.longpaths true
然后删除全部文件,包括 .git 文件,最后重新下载开始:
- git init
- git clone 项目ssh地址
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。