জেরিতের সঙ্গে কাজ
Account setup
Gerrit সার্ভারঃ 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.
আপনারও [এসএসএইচ কী আপলোড করা দরকার]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 config --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 দূরবর্তী সেট-ইউআরএল উৎপত্তি 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 ধাক্কা উৎপত্তি HEAD:refs/for/master
আপনি যদি ডিফল্টভাবে উপরে বর্ণিত হিসাবে refs/for/master কনফিগার করেন, তাহলে কেবল
git push
যদি HEAD বর্তমানে আপনি যে কমিটগুলি দিয়ে শাখায় নির্দেশ করেন তা আপনি চাপ দিতে চান। আদর্শভাবে, আপনার হাতে থাকা সমস্যাটির জন্য একটি বৈশিষ্ট্য / বাগ শাখায় কাজ করা উচিত। তারপরে আপনি করতে পারেনঃ
git push origin <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 push private
ব্যক্তিগত কাজ প্যাচসেটগুলির মতোই, তবে তারা ডিফল্টরূপে অন্যদের কাছে দৃশ্যমান নয় এবং কোনও জেঙ্কিনস বিল্ড ট্রিগার করে না।