तपाईंको पहिलो प्याच पठाउँदै
पनि हेर्नुहोस
Set up Git and SSH to work smoothly with Gerrit. First see Creating a gerrit review.
SSH सेटअप
https://review.jami.net/Documentation/user-upload.html#ssh
Generate a personal, dedicated public/private key set.
ssh-keygen -f ~/.ssh/jami_gerrit_review`
Your identification has been saved in jami_gerrit_review
.
Your public key has been saved in jami_gerrit_review.pub
.
Tell Gerrit your public key.
Set up your local SSH (via
ssh-add
or in~/.ssh/config
).Test all of the above (SSH on the service or just try to clone a repo on Gerrit via SSH).
Your repository
जरुरी
यो अनुमान छ कि तपाईंले कुनै पनि विद्यमान परियोजना क्लोनलाई हटाउनुभएको छ।
Clone a (fresh) copy of the project,
git clone ssh://USERNAME@review.jami.net:29420/PROJECT_NAME_GOES_HERE.git
; e.g.,git clone ssh://foo@review.jami.net:29420/jami-project.git
.Configure this clone's local .git/config (optional).
Generate commit Change-Ids. Also known as commit-msg hook script.
A shell script to be installed to .git/hooks/commit-msg.
स्क्रिप्टले तपाईंको भण्डारबाट गरिएको प्रत्येक प्रतिबद्धताका लागि एक अद्वितीय Change_Id:hash सिर्जना गर्दछ।
The first time you attempt a push to review
git push origin HEAD:refs/for/master
, Gerrit will notice a lack of Change-Id.Gerrit ले सुरक्षित प्रतिलिपि (scp) स्ट्रिङ पनि प्रस्तुत गर्नेछ।.git/hooks/commit-msg को प्रतिलिपि डाउनलोड गर्न that प्रयोग गर्नुहोस्।