ゲリット と 一緒 に 働い て いる
Account setup
ゲリットサーバー: https://review.jami.net
ユーザードキュメント: https://review.jami.net/Documentation/intro-user.html
ゲリットに関するJamiプロジェクト: https://review.jami.net/admin/repos/
Sign in with your Google, GitHub, or git.jami.net account.
また,SSHキー (https://review.jami.net/settings/#SSHKeys) をアップロードして,変更をレビューにすることができます.
ユーザー名を選択することを忘れないでください.
Finally, the email address specified in your git config must match one of the email addresses registered with your Gerrit account.
重要
For Savoir-faire Linux Inc. employees: please continue to use your @savoirfairelinux.com email address.
To view your Git config
git設定 -リスト
To test your SSH access
To check that your SSH access is properly set up, run the following command:
ssh -p 29420 <ユーザー名>@review.jami.net
If your access is granted, you should see a message like:
**** Welcome to Gerrit Code Review ****
Hi, you have successfully connected over SSH.
Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:
git clone ssh://<username>@review.jami.net:29420/REPOSITORY_NAME.git
Connection to review.jami.net closed.
Git configuration
Gerrit is the official Git repository.
設定を更新する
You must update your remote information to now use the Gerrit repository. To do that, update your origin URL:
git リモートセット-url 原発 ssh://<ユーザー名>@review.jami.net:29420/<プロジェクト_名前>
Replace <project_name>
with the correct project (example: jami-daemon).
新たにスタートしたいなら 既存のリポジトリを クローンします
押す 標準で ref/for/master
You can configure Git to automatically create a review when a change is pushed.
git remote.origin.push HEAD:refs/for/master
レビュー を 作成 する
この魔法の枝に押し寄せる時 ゲリットのレビューが自動的に作成されます
git 押し出産 HEAD:refs/for/master
設定した場合は,単に
git 押す
HEAD が現在,あなたが押し付けたいコンビットで支店を指している場合は,理想的には,問題に関する機能/バグ支店で作業する必要があります.
git 押し出源 <bugfix_branchname>:refs/for/master
If this is the first time you've pushed, you will be prompted to install a post-commit hook to insert a Change-ID in your commit message. Gerrit needs this to track patch sets and will reject pushes until you install it. Simply copy and paste the command to install the hook as instructed by Gerrit and amend your commits.
To push a private patch
You can push a work in progress (a.k.a. draft) by pushing to refs/for/master%private
.
例えば, "プライベート" リモコンを押して <project_dir>/.git/config を開いて追加する
[remote "private"]
url = ssh://<username>@review.jami.net:29420/jami-daemon
push = HEAD:refs/for/master%private
じゃあ
git 押す私
パーソナリティはパッチセットと同じ方法で動作します. ただし,他のユーザーにはデフォルトで見えません. ジェンキンズビルドを起動しません.