您的位置:首页 > 其它

Gerrit 配置同步到多个仓库

2017-06-09 23:27 846 查看
1、修改replication.config文件

[remote "xxx"]
projects = Yilule.Core.Service
#aliyun仓库
url = git@code.aliyun.com/xxx.git
#oschina仓库
url = git@git.oschina.net/xxx.git
push = +refs/heads/*:refs/heads/*
push = +refs/tags/*:refs/tags/*
push = +refs/changes/*:refs/changes/*
threads = 3

2、重新加载replication plugin

ssh -p 29418 xxx@xxx.com gerrit plugin reload replication

参考文章:

https://gerrit.googlesource.com/plugins/replication/+doc/master/src/main/resources/Documentation/config.md
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: