无法访问同一服务器上安装的 GitLab 和现在现有的 Git 存储库

Installed GitLab and now existing Git repos on same server are inaccesible

我有一个基本的 git 服务器 运行 一段时间,并决定安装 GitLab(在同一台服务器上)用于 GUI、权限控制、合并请求等。安装 GitLab 后, none 来自原始 git 服务器的回购协议是可以访问的。尝试克隆存储库或推送到存储库时出现以下错误...

git clone git@mygitserver.com:repositories/myrepo.git     Initialized empty Git repository in /home/myuser/myrepo/.git/
fatal: protocol error: bad line length character: No s

当我尝试在处理此问题的其他帖子中找到的方法时,出现以下错误...

ssh mygitserver git-receive-pack /home/git/repositories/myrepo.git
fatal: '/home/git/repositories/myrepo.git' does not appear to be a git repository

如何让我的 'old' git 回购到 GitLab,或者至少在它们仍然可用的地方? GitLab 本身运行良好。我可以设置回购协议、克隆、推送和做任何我想做的事。太棒了,我只需要能够克隆现有的存储库,这样我就可以将它们迁移到 GitLab。

https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/import.md

Chris 是对的,这很完美。