Gerrit 配置同步到多个仓库

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

posted @ 2017-06-09 23:27  南风_real  阅读(1663)  评论(0编辑  收藏  举报