---
title: "Gerrit replication.config"
author: "scm002"
date: "2017-03-16T19:15:24Z"
tags: []
categories: ["开源软件"]
slug: "gerrit-replication-config"
draft: false
lastmod: "2017-03-16T19:15:24Z"
id: 2363596
url: "https://scm002.iteye.com/blog/2363596"
---

replication.config

\[remote "slave "]

\#   url = ssh://user@172.16.2.35:29418/${name}.git

   url = ssh://gerrit2@172.16.2.35/home/gerrit2/review\_site/git/${name}.git

   push = +refs/heads/\*:refs/heads/*

   push = +refs/tags/\*:refs/tags/*

   mirror = true

   threads = 2

   createMissingRepositories = true

   adminUrl = ssh://gerrit2@172.16.2.35/home/gerrit2/review\_site/git/${name}.git