Enable Gerrit Code Review Replication

Note: This section is for system administrators only.

Gerrit Code Review can be configured to push changes from Git repositories to one or more remote hosts. This section describes how to enable Gerrit Code Review replication in GitCentric. For general concepts related to Gerrit Code Review replication, refer to the Gerrit Code Review documentation.

The basic procedure for enabling Gerrit Code Review replication is summarized here:

  1. Register the SSH public key representing the GitCentric bridge account with the Gerrit Code Review administrator’s account.
  2. Ensure that the server running Gerrit Code Review has SSH access to the server to which changes will be replicated. If the machine running Gerrit Code Review has never connected to the replication server, it will be listed as an unknown host and Gerrit Code Review will close the connection.
  3. Modify the sample Git-style configuration file, replication.config, that is installed with GitCentric.
  4. Stop and restart GitCentric.