複製外掛

無論如何,它用於從 gerrit 複製 git 儲存庫。配置檔案是 $GERRIT_INSTALL/etc/replication.config

配置檔案示例以將 MyRepogerrit 克隆到 backupServer

[remote "backup"]
    url = ProjectUrlOnBackupServer/${name} #Example backup.some.org:/pub/git/${name}.git
    push = +refs/heads/*:refs/heads/*
    push = +refs/tags/*:refs/tags/*
    projects = MyRepo

要重新載入外掛,請重新啟動 Gerrit 伺服器或執行以下命令(如果安裝了 install plugin):

ssh -p 29418 localhost gerrit plugin reload replication

完整文件: 官方複製外掛文件