Rad sa Gerritom
Account setup
Gerrit server: https://review.jami.net
U skladu s člankom 1. stavkom 1. stavkom 1. stavkom 1. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2. stavkom 2.
Projekti Jami na Gerrit: https://review.jami.net/admin/repos/
Sign in with your Google, GitHub, or git.jami.net account.
Također ćete morati [uploaditi SSH ključ]https://review.jami.net/settings/#SSHKeys) da biste mogli izvršiti promjene za pregled.
Ne zaboravite odabrati korisničko ime.
Finally, the email address specified in your git config must match one of the email addresses registered with your Gerrit account.
Važno
For Savoir-faire Linux Inc. employees: please continue to use your @savoirfairelinux.com email address.
To view your Git config
git konfig --list
To test your SSH access
To check that your SSH access is properly set up, run the following command:
ssh -p 29420 <username>@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.
Kako bi ažurirao konfiguraciju
You must update your remote information to now use the Gerrit repository. To do that, update your origin URL:
git daljinski nastavio url izvor ssh://<username>@review.jami.net:29420/<projekt_name>
Replace <project_name>
with the correct project (example: jami-daemon).
Ili klonirati postojeći repozitorij ako želite početi od početka.
U slučaju da se ne može primjenjivati, u slučaju da se ne može primjenjivati, primjerice u slučaju da se ne može primjenjivati.
You can configure Git to automatically create a review when a change is pushed.
git konfig remote.origin.push HEAD:refs/for/master
Kako stvoriti pregled
Kada se pomaknete na ovaj čarobni grani, automatski će se stvoriti recenzija o Gerrit.
git potiska izvor HEAD:refs/for/master
Ako ste konfigurirali podrazumevano na refs/for/master kao što je opisano gore, jednostavno
git potiska
Ako HEAD trenutno ukazuje na podružnicu s commitovima koje želite potisnuti.
git potiska izvor <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
.
Na primjer, možda želite „privatni” daljinski uređaj za pritisak na; otvoriti <project_dir>/.git/config i dodati:
[remote "private"]
url = ssh://<username>@review.jami.net:29420/jami-daemon
push = HEAD:refs/for/master%private
Onda:
git potis privat
Privati rade na isti način kao i paketi, osim što nisu vidljivi drugima po prednapisu i ne pokreću nikakve Jenkinsove konstrukcije.