标签:
Part 1 Gerrit Prerequisites:
1.Java JDK>1.7
2.Git
3.SSH server
4.DB
$ java -jar ./gerrit-2.11war init -d review_site
#除以下选项外,其他选默认即可
Database server type [h2]: h2
Authentication method [OPENID/?]:development_become_any_account
Listen on port [29418]:9420
Create adminstrator user [Y/n]?
username [admin]:ext-huaqin-wangpengfei(电脑用户名)
name [Administrator]:wangpengfei
email [admin@example.com]:wangpengfei@huaqin.com
HTTP password [secret]:
$ repo forall -c ‘echo $REPO_PROJECT; ssh -p 9420 admin@localhost gerrit create-project --name $REPO_PROJECT‘
$ repo formall -c ‘echo $REPO_PROJECT; git push ssh://ramon@localhost:9420/$REPO_PROJECT +refs/heads/*;‘
$ repo formall -c ‘echo $REPO_PROJECT; git push ssh://ramon@localhost:9420/$REPO_PROJECT +refs/tags/*;‘
标签:
原文地址:http://www.cnblogs.com/perfe/p/5621439.html