gpt4 book ai didi

Git refs/remotes/origin/master 没有指向一个有效的对象

转载 作者:IT王子 更新时间:2023-10-29 01:10:47 24 4
gpt4 key购买 nike

在最后一次 merge 到我的 Git 存储库的主分支后,我失去了克隆存储库的能力。

Cloning into test-repository...remote: Counting objects: 126084, done.remote: Compressing objects: 100% (28327/28327), done.Receiving objects: 100% (126084/126084), 132.63 MiB | 29.30 MiB/s, done.remote: Total 126084 (delta 96101), reused 126078 (delta 96095)Resolving deltas: 100% (96101/96101), done.error: refs/remotes/origin/master does not point to a valid object!error: Trying to write ref refs/heads/master with        nonexistant object 951aca8051823b2f202d30c9cb05401ef17618c6

Fisheye, a repository hosting tool, is reporting:

Unable to fetch from remote repository:/var/atlassian/application-data/fisheye/managed-repos/MYREPONAME.giterror: unable to find 0d998c99b6d01e8aabca72b1934802acf90b8fc9,fatal: object 0d998c99b6d01e8aabca72b1934802acf90b8fc9 not found

The last commit in the repository on master branch is:

commit 0d998c99b6d01e8aabca72b1934802acf90b8fc9Merge: a6ea4b3 1f373a9Date:   Fri Dec 14 13:57:24 2012 +0200Merge branch 'new_error_code'

I have tried:

cd /var/atlassian/application-data/fisheye/managed-repos/MYREPONAME.git
git gc
git fsck --full
git reflog expire --expire=0 --all
git update-ref
git gc --aggressive

以下问题对我的情况没有帮助:

最佳答案

git gc
git fsck --full
git reflog expire --expire=0 --all
git update-ref -d 0d998c99b6d01e8aabca72b1934802acf90b8fc9
git gc --aggressive
git remote update --prune

成功了!

关于Git refs/remotes/origin/master 没有指向一个有效的对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13881609/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com