Git refs / remotes / origin / master没有指向一个有效的对象 [英] Git refs/remotes/origin/master does not point to a valid object

查看:2872
本文介绍了Git refs / remotes / origin / master没有指向一个有效的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 
克隆到test-存储库...
remote:计数对象:126084,完成。
remote:压缩对象:100%(28327/28327),完成。
接收对象:100%(126084/126084),132.63 MiB | 29.30 MiB / s,完成。
remote:合计126084(delta 96101),重用126078(delta 96095)
解析三角洲:100%(96101/96101),完成。
错误:refs / remotes / origin / master没有指向有效的对象!
错误:尝试使用
编写ref refs / heads / master非易失性对象951aca8051823b2f202d30c9cb05401ef17618c6

Fisheye是一个存储库托管工具,正在报告:

 
无法从远程存储库中获取:
/ var / atlassian / application-data / fisheye / managed -repos / MYREPONAME.git
错误:无法找到0d998c99b6d01e8aabca72b1934802acf90b8fc9,
致命:object 0d998c99b6d01e8aabca72b1934802acf90b8fc9找不到

master存储库中的最后一次提交是:

 
commit 0d998c99b6d01e8aabca72b1934802acf90b8fc9
合并:a6ea4b3 1f373a9
Date:Fri Dec 14 13:57:24 2012 +0200

合并分支'new_error_code'

我试过了:

  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 --ggressive

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




解决方案

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

并且工作正常!


After the last merge to the master branch of my Git repository I have lost the ability to clone repository.

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.git
error: unable to find 0d998c99b6d01e8aabca72b1934802acf90b8fc9,
fatal: object 0d998c99b6d01e8aabca72b1934802acf90b8fc9 not found

The last commit in the repository on master branch is:

commit 0d998c99b6d01e8aabca72b1934802acf90b8fc9
Merge: a6ea4b3 1f373a9
Date:   Fri Dec 14 13:57:24 2012 +0200

Merge 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

The following questions did not help my case:

解决方案

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

and it worked!

这篇关于Git refs / remotes / origin / master没有指向一个有效的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆