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

你离开我真会死。 提交于 2019-12-08 04:16:21

问题


I had a basic git server running for a while, and decided to install GitLab (on the same server) for the GUI, permission control, merge requests, etc. After installing GitLab, none of my repos from the original git server are accessible. I get the following error when trying to clone a repo or push to a repo...

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

And when I try what I found in other posts dealing with this issue, I get the following error...

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

How can I get my 'old' git repos into GitLab, or at least somewhere that they're still usable? GitLab itself runs just fine. I can setup repos, clone, push, and do whatever I want. It's great, I just need to be able to clone the existing repos so I can migrate them into GitLab.


回答1:


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

Chris was right, this works perfectly.



来源:https://stackoverflow.com/questions/29542689/installed-gitlab-and-now-existing-git-repos-on-same-server-are-inaccesible

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!