1. Repo sync mirror code base, example
client# git clone
gerrit2@xx-SERVER-5
:~/review_site/git/ccc_bbb/manifest.git
Server# repo init -u ssh://android.google.com/a/aosp/platform/manifest -b ccc/cccc/ccccc -m android-ccc --mirror
2. git clone the manifest
3. Modify the manifest, fetch from server-5
client# cd manifest; vimandroid-ccc
example:
<default revision="ccc/cccc/ccccc" remote="ccc_bbb" sync-c="true"/>
<remote name="ccc_bbb" fetch="ssh://xx-server-5.sh.xxx.com" review="xx-server-5.android.google.com:8080"/>
<remote name="ccc_bbb" fetch="ssh://xx-server-5.sh.xxx.com" review="xx-server-5.android.google.com:8080"/>
client# git push
4. repo init by new gerrit server
client# repo init -u ssh://my@xx-server-5.sh.xxx.com:29418/ccc_bbb/manifest -b ccc/cccc/ccccc -m android-ccc
client#
repo sync -j5 -c
now the code is from your git server.