GitLab项目迁移到Gerrit

1、在Gerrit上新建项目;

2、Gerrit项目配置权限(此处非代码):

Reference:refs/*

Push Annotated Tag

Push Signed Tag

Forge Committer Identity

Create Reference

Read

Push

3、将GitLab项目克隆至本地;

4、定位到GitLab项目的目录下,使用命令,将远程仓库路径改为Gerrit项目仓库路径:

git remote set-url origin ssh://[email protected]:29418/JSQB

5、检出所有分支:

列出所有分支

git branch -r

依次检出到本地

git checkout branch1

git checkout branch2

git checkout branch3

6、推送所有分支和标签到Gerrit上:

git push --all

git push --tags

你可能感兴趣的:(GitLab项目迁移到Gerrit)