跳转至

10 gitlab 迁移代码仓库步骤

代码仓迁移

手动迁移

1、 克隆云效代码镜像,检出命令:

$ git clone --mirror

2、 进入本地仓库目录

$ cd <本地仓库目录>

3、 绑定gitlab新仓库地址:

$ git remote add gitlab <gitlab_url>

4、 检查

$ git remote -v

5、正确无误的情况下推送代码至gitlab,如有其他异常需处理完毕后推送

推送命令:

$ git push --all gitlab --force