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

~~~~~~~~~~~~~~~~~~~~~~~~~~闲谈莫论人非,静坐常思己过~~~~~~~~~~~~~~~~~~~~~~~~~~
原文地址:https://www.cnblogs.com/jaychang/p/6974196.html