2012-09-07 73 views
2

我想在合併到我的Github回購前使用gerrit進行代碼審查。如何將我的github庫添加到本地gerrit服務器?

首先,我安裝了gerrit服務器到本地機器後面this。以下是我進入初始化格里特服務器時:

$ java -jar gerrit-war/target/gerrit-2.6-SNAPSHOT.war init -d ../test_site 

*** Gerrit Code Review 2.4.2-689-g10b8774 
*** 

Create '/Users/pj/git/test_site' [Y/n]? 

*** Git Repositories 
*** 

Location of Git repositories [git]: 

*** SQL Database 
*** 

Database server type   [H2/?]: ? 
     Supported options are: 
     h2 
     postgresql 
     mysql 
     jdbc 
Database server type   [H2/?]: 

*** User Authentication 
*** 

Authentication method   [OPENID/?]: ? 
     Supported options are: 
     openid 
     openid_sso 
     http 
     http_ldap 
     client_ssl_cert_ldap 
     ldap 
     ldap_bind 
     custom_extension 
     development_become_any_account 
Authentication method   [OPENID/?]: development_become_any_account 

*** Email Delivery 
*** 

SMTP server hostname   [localhost]: 
SMTP server port    [(default)]: 
SMTP encryption    [NONE/?]: 
SMTP username     : PJ Kim 
PJ Kim's password    : 
       confirm password : 

*** Container Process 
*** 

Run as       [pj]: 
Java runtime     [/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre]: 
Copy gerrit.war to /Users/pj/git/gerrit/../test_site/bin/gerrit.war [Y/n]? 
Copying gerrit.war to /Users/pj/git/gerrit/../test_site/bin/gerrit.war 

*** SSH Daemon 
*** 

Listen on address    [*]: 
Listen on port     [29418]: 

Gerrit Code Review is not shipped with Bouncy Castle Crypto v144 
    If available, Gerrit can take advantage of features 
    in the library, but will also function without it. 
Download and install it now [Y/n]? 
Downloading http://www.bouncycastle.org/download/bcprov-jdk16-144.jar ... OK 
Checksum bcprov-jdk16-144.jar OK 
Generating SSH host key ... rsa... dsa... done 

*** HTTP Daemon 
*** 

Behind reverse proxy   [y/N]? 
Use SSL (https://)    [y/N]? 
Listen on address    [*]: 
Listen on port     [8080]: 

*** Plugins 
*** 

No plugins found. 
Initialized /Users/pj/git/test_site 
Executing /Users/pj/git/gerrit/../test_site/bin/gerrit.sh start 
Starting Gerrit Code Review: OK 
Waiting for server to start ... OK 
Opening browser ... 
$ 

瀏覽器中打開,我創建了一個賬號,登錄然後我點擊「項目>新建項目」,填寫「項目名稱」而已,點擊「創建項目」按鈕。

我可以看到'Projects> List'上創建的項目名稱,但不知道如何將我的github回購(例如[email protected]:philipjkim/vimrc.git)連接到gerrit項目。感謝您的任何建議/更正。

回答

相關問題