与杰里特合作
Account setup
杰里特的杰米项目:
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).
或可以克隆现有库,如果你想从新开始.
按默认按下对方/对方/主
You can configure Git to automatically create a review when a change is pushed.
git配置远程.原始.按下 HEAD:refs/for/master
创建复习
当你进入这个魔术分支时, 马上就会对格里特进行评论.
git推出来源 HEAD:refs/for/master
如果您设置默认的ref/for/master如上所述,
git推
如果 HEAD 现在指向您的提交的分支.理想情况下,您应该在一个功能/bug分支中为目前的问题工作.
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 推私人
专用工作与补丁组一样,但它们默认不可见于其他人,并且不会触发任何詹金斯构建.