git 致命错误:引用不是树:发展

siv3szwd  于 2023-03-16  发布在  Git
关注(0)|答案(2)|浏览(270)

我们现在使用的是GitLab 6.2.1-0和Git 1.8.3,我试图接受从开发分支到生产分支的合并请求,但GitLab UI不允许您接受合并请求。点击“接受合并请求”没有任何作用。深入挖掘,它只发生在一个项目上,它开始显示“致命:引用不是树:“host.log中的错误
在我们最近重新启动GitLab服务器之前,它一直在工作

February 16, 2016 10:29 -> ERROR -> Command failed --git-dir=/opt/gitlab-6.2.1-0/apps/gitlab/gitlab-satellites/projectname/.git checkout develop    
fatal: reference is not a tree: develop
February 16, 2016 10:29 -> ERROR -> Command failed --git-dir=/opt/gitlab-6.2.1-0/apps/gitlab/gitlab-satellites/projectname/.git push origin prod
error: src refspec prod does not match any.
error: failed to push some refs to '/opt/gitlab-6.2.1-0/apps/gitlab/repositories/projectname.git'

导航到git项目目录,显示它当前位于_parkingbranch,其中所有其他项目将显示develop分支

cd /opt/gitlab-6.2.1-0/apps/gitlab/gitlab-satellites/projectname
git status
# On branch __parking_branch
nothing to commit, working directory clean

我试着切换分支来开发,但没有帮助。

git checkout develop
fatal: reference is not a tree: develop

这是发生在实际的git服务器上,而不是我的本地机器上。任何指针都非常感谢。

gj3fmq9x

gj3fmq9x1#

答案是晚了,但我有一个类似的问题。我试图在一个旧的分支拉,但同样的消息显示,所以我创建了一个本地临时分支,并做了一个硬重置与分支的起源。然后我重命名了临时分支的名称,它有在起源。
在简历中,这些步骤是:
1.创建本地分支
git检查-B温度
1.使用所需分支执行硬重置
git reset --硬起始/分支名称
1.重命名临时分支
git分支-m分支名称

9q78igpj

9q78igpj2#

使用Xcode Version 14.3 beta 2(14E5207e)重置包缓存为我修复了这个问题。
我怀疑这个问题是由于试图在同一个项目上使用Xcode发行版和beta版而没有正确地手动清除项目造成的。

相关问题