首页 > 技术文章 > Gerrit 配置同步到多个仓库

jaychang 2017-06-09 23:27 原文

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

推荐阅读