Replication to GitHub
The next steps in the Gerrit to GitHub integration is to share the same Git repositories and then keep them up-to-date; this can easily be achieved by using the Gerrit replication plugin.
The standard Gerrit replication is a master-slave, where Gerrit always plays the role of the master node and pushes to remote slaves. We will refer to this scheme as push replication
because the actual control of the action is given to Gerrit through a
git push operation of new commits and branches.
Configure Gerrit replication plugin
In order to configure push replication we need to enable the Gerrit replication plugin through Gerrit init:
$ /opt/gerrit/bin/gerrit.sh stop Stopping Gerrit Code Review: OK $ cd /opt/gerrit $ java -jar gerrit.war ...