ITeye博客

gitlab 项目迁移

scm002 · 2017-03-04 11:45 · Git/Gerrit · 编程语言 · Markdown

gitlab项目迁移:

 

一: 场景

    目前有2个gitlab server,需要将gitlab-A server项目迁移到另外一个gitlab-B server.

二: 步骤

    1. 在gitLab-B上新建组和项目,组和项目名称和gitlab-A的组合项目名称一一对应。

    2. 将gitlab-A项目clone到本地

       git clone https://github.com/group/hello.git

    3. 进入项目hello, 执行一下命令

       cd hello

       git remote set-url origin ssh://git@172.16.2.94:10022/group/hello.git

       git push -u origin master

       git checkout develop

       git push -u origin develop

       git checkout testing

       git push -u origin testingg

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。