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