假設 Gerrit Admin 已經建立你的帳號,

你就可以在 Linux 平台, 透過 browser 註冊帳號, 其方法如下:

 

01. 登入 Gerrit Admin 給你的 Gerrit 網址, 並輸入帳號/密碼。

Login Gerrit Server

 

02. Settings > Contact Information > Register New Email

Register Email Address

Gerrit will send an Email verification to your Email Account.

 

03. 簽入 Gerrit Server, 透過你的 Email。

Sign In As A Gerrit User

 

04. 註冊你的 SSH Key。

$ ssh-keygen

$ cat ~/.ssh/id_rsa.pub

 

05. 將 cat 出來的結果, 複製你的 SSH Key 至 Gerrit Web Server。

Add SSH Public Key

 

06. 驗證一下自己的帳號有無與 Gerrit Server 連線成功。

$ ssh -p 29418 account@gerritserver.domain

 

07. 仔細看一下你的 Terminal 列出的訊息。

**** Welcom to Gerrit Code Review ****

Hi <account>, you have successfully connected over SSH.

代表你已連線成功。

 

08. 另外, 你也可以利用以下指令, 來了解 Gerrit Server 上有哪幾個 Projects 。

$ ssh -p 29418 account@gerritserver.domain gerrit ls-projects

 

09. Clone 一個 Project 至你的 Client。

$ git clone ssh://account@gerritserver.domain:29418/TestProject

創作者介紹
創作者 J.Y. Works 的部落格 的頭像
J.Y. Works

J.Y. Works 的部落格

J.Y. Works 發表在 痞客邦 留言(0) 人氣( 686 )