जेरिटसँग काम गर्दै
Account setup
Gerrit सर्भरः https://review.jami.net
प्रयोगकर्ता कागजातः https://review.jami.net/Documentation/intro-user.html
जेमी परियोजनाहरू Gerrit माः 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/<project_name>
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 remote.origin.push कन्फिगर गर्नुहोस् HEAD:refs/for/master
समीक्षा सिर्जना गर्न
जब यो जादुई शाखामा धक्का, एक समीक्षा स्वचालित रूपमा Gerrit मा सिर्जना गरिनेछ।
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 धक्का निजी
निजी काम प्याचसेट जस्तै, बाहेक तिनीहरू अन्य द्वारा पूर्वनिर्धारित रूपमा देखिने छैनन् र कुनै पनि जेनकिन्स निर्माण ट्रिगर छैन। एक ड्राफ्ट त्यसपछि साझेदारी वा प्रकाशित गर्न सकिन्छ।