0

我有一个自托管 gitlab ce 服务。

我在网站上看不到我的呼吸系统的主分支。

发现问题后试试这个:

  1. 将我的本地分支master推 送到 origin/master
(master)# git push -u origon/master
error: src refspec refs/heads/master does not match any.
error: failed to push some refs to 'origon/master'

git fetch也不工作。2.在网站上创建一个新的master分支。不工作

所以我去检查 gitlab 服务器上的存储库。似乎主人存在。但没有指向任何提交。

root@Gitlab:/var/opt/gitlab/git-data/repositories/lianjc/Intelligent_Entrance_Guard.git# cat refs/heads/
for_origin_db  m2             master         
root@Gitlab:/var/opt/gitlab/git-data/repositories/lianjc/Intelligent_Entrance_Guard.git# cat refs/heads/
for_origin_db  m2             master         
root@Gitlab:/var/opt/gitlab/git-data/repositories/lianjc/Intelligent_Entrance_Guard.git# cat refs/heads/m
m2      master  
root@Gitlab:/var/opt/gitlab/git-data/repositories/lianjc/Intelligent_Entrance_Guard.git# cat refs/heads/master 
root@Gitlab:/var/opt/gitlab/git-data/repositories/lianjc/Intelligent_Entrance_Guard.git# cat refs/heads/m2     
852a5dfd5849ccb81def6f0ef223dbed87ff7f6e
root@Gitlab:/var/opt/gitlab/git-data/repositories/lianjc/Intelligent_Entrance_Guard.git# cat refs/heads/for_origin_db 
852a5dfd5849ccb81def6f0ef223dbed87ff7f6e

我可以只编辑文件“refs/heads/master”,让它指向一个提交吗?或者我可以在网站上做些什么?

对不起我糟糕的英语。

在此处输入图片描述无法发布图片。

4

0 回答 0