Gerritekin lan egiten
Account setup
Gerrit zerbitzaria: https://review.jami.net
Erabiltzailearen dokumentazioa: https://review.jami.net/Documentation/intro-user.html
Jami-ren Gerriteko proiektuak: https://review.jami.net/admin/repos/
Sign in with your Google, GitHub, or git.jami.net account.
Halaber, [SSH gako bat igo beharko duzu]https://review.jami.net/settings/#SSHKeys) berrikuspenetarako aldaketak egiteko.
Ez ahaztu erabiltzaile izena hautatzea.
Finally, the email address specified in your git config must match one of the email addresses registered with your Gerrit account.
Garrantzitsua
For Savoir-faire Linux Inc. employees: please continue to use your @savoirfairelinux.com email address.
To view your Git config
`git konfigurazioa –list
To test your SSH access
To check that your SSH access is properly set up, run the following command:
ssh -p 29420 < erabiltzaile izena>@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.
Konfigurazioa eguneratu
You must update your remote information to now use the Gerrit repository. To do that, update your origin URL:
`git urrutiko jatorria ssh://
Replace <project_name>
with the correct project (example: jami-daemon).
Edo egungo biltegia klonatzea, berriro hasi nahi baduzu.
Aurreikuspenaren bidez bultzatzea erreferenteak/entzako/buruak
You can configure Git to automatically create a review when a change is pushed.
git konfiguratzea remote.origin.push HEAD:refs/for/master
Berrikuspena egiteko
Adar magiko horretara bultzatzen duzunean, berrikuspen bat sortuko da automatikoki Gerrit-en gainean.
git bultza jatorria HEAD:refs/for/master
Default erreferentzia erreferentzia-aurreikusitako moduan konfiguratzen baduzu,
♪ Bultza ♪
HeAD-ek orain adar bat bideratu nahi badu, eta konpromisoak egin nahi badituzu, hobe duzu funtzioen adar batean lan egitea.
git bultza jatorria <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
.
Adibidez, urrutiko aginte pribatu bat behar duzu bultzatzeko; ireki <project_dir>/.git/config eta gehitu:
[remote "private"]
url = ssh://<username>@review.jami.net:29420/jami-daemon
push = HEAD:refs/for/master%private
Eta gero:
git push private
Kontu pribatuak patchsetek bezalaxe egiten dira, baina ez dira besteentzat ikusgarriak eta ez dute Jenkins-en eraikuntza aktibatzen.