在 git 克隆接收"Cache entry has null sha1 value"



当我试图在我的git存储库上进行git克隆时,我会得到以下错误:

$ git clone https://xxxxxxxxx:8081/scm/xxxxxx/xxxx-apac.git
Cloning into 'xxxx-apac'...
remote: Counting objects: 740, done.
remote: Compressing objects: 100% (471/471), done.
remote: Total 740 (delta 304), reused 466 (delta 201)
Receiving objects: 100% (740/740), 5.28 MiB | 1.11 MiB/s, done.
Resolving deltas: 100% (304/304), done.
error: cache entry has null sha1: bin
fatal: unable to write new index file
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

/c/Users/bala/Bala/project
$ cd xxxx-apac/
/c/Users/bala/Bala/project/xxxx-apac (xxxx_Apr2018)
$ git branch --all
* xxxx_Apr2018
remotes/origin/HEAD -> origin/xxxx_Apr2018
remotes/origin/master
remotes/origin/xxxx_Apr2018
remotes/origin/xxxxx_mReleases2018

我的克隆失败,本地目录不为空。无论如何,修复

这是典型的符号链接或子模块条目添加错误(如本例(:您可以检查远程托管服务(GitHUb?GitLab?BitBucket(中"bin"的表示方式以确认这一点。

如果你可以应用"如何删除Git树中sha1为空的条目"(即使在你的空工作树中(中的解决方案,如果你有权强制推送(git push --force(结果,你可能能够为其他人修复该repo。

相关内容

最新更新