[英]Moving git repos to gitlab
I have git server running over ssh. 我有git服务器在ssh上运行。 All git repos are under /opt/git/repos folder on my git server.
所有的git仓库都在我的git服务器上的/ opt / git / repos文件夹下。
Now on the same server I installed gitlab. 现在,在同一台服务器上,我安装了gitlab。 The url to the server remains the same.
服务器的URL保持不变。 The folder where gitlab looks for repos is /opt/gitlab.
gitlab查找存储库的文件夹是/ opt / gitlab。
My question is, how do I move / import my existing repos under /opt/git/repos into /opt/gitlab so that gitlab can see them? 我的问题是,如何将我在/ opt / git / repos下的现有存储库移动/导入到/ opt / gitlab中,以便gitlab可以看到它们?
I am doing this on centos 6.x 我在centos 6.x上执行此操作
Performed below steps: 执行以下步骤:
$ git remote add gitlab http://git.xxx.com/username/my-git-repo.git#
$ git remote add gitlab http://git.xxx.com/username/my-git-repo.git#
$ git push gitlab --mirror
$ git push gitlab --mirror
Please note that I have copied the http address of the git repo from the gui after creating it. 请注意,创建后,我已从gui复制了git repo的http地址。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.