Gerrit server setup

来源:互联网 发布:数据集成平台软件 编辑:程序博客网 时间:2024/05/18 01:14
1. Repo sync mirror code base, example
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
client# git clone gerrit2@xx-SERVER-5:~/review_site/git/ccc_bbb/manifest.git

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"/>
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.
1 0