게리트 와 일 하는 것
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 구성 -list
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://<username>@review.jami.net:29420/< 프로젝트_명>
Replace <project_name>
with the correct project (example: jami-daemon).
아니면 새로운 것을 시작하려면 기존 저장소를 복제합니다.
Refs/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 어래 어래 어래
만약 당신이 기본적으로 위와 같이 Refs/for/master로 설정했다면,
git push
HEAD이 현재 당신이 추진하고자 하는 컴비팅을 가지고 해당 분자를 가리키는 경우, 이상적으로는 해당 문제에 대해 기능/버그 분자에 작업해야 합니다.
git push origin <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 push privat
개인 작업은 패치셋과 같은 방식으로 수행되지만 기본적으로 다른 사람들에게 보이지 않으며 제킨스 빌드를 유발하지 않습니다.