العمل مع جريت
Account setup
خادم جريت: https://review.jami.net
وثائق المستخدم: https://review.jami.net/Documentation/intro-user.html
مشاريع جامي على جيريت: 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 config remote.origin.push HEAD:refs/for/master
لإعداد المراجعة
عند الدفع إلى هذا الفرع السحري، سيتم تلقائيًا إنشاء مراجعة على جريت.
`git تأثير الأصلية
إذا قمت بتهيئة الوضع الافتراضي إلى 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 دفع خصوصي
العمل الخاص بنفس الطريقة التي تقوم بها المجموعات المكونة من المكونات، إلا أنها ليست مرئية للآخرين من قبل الافتراضي ولا تنفذ أي بناءات جينكينز. يمكن مشاركة مسودة أو نشرها.