ஜெரிட் உடன் பணிபுரிதல்

Account setup

  1. Sign in with your Google, GitHub, or git.jami.net account.

  2. நீங்கள் [SSH விசை]https://review.jami.net/settings/#SSHKeys) ஐ பதிவேற்ற வேண்டும்.

  3. ஒரு பயனர்பெயரைத் தேர்ந்தெடுக்க மறக்காதீர்கள்.

  4. Finally, the email address specified in your git config must match one of the email addresses registered with your Gerrit account.

Important

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

is your Gerrit username that you should have set during the account creation. If not, you can do that here.

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).

அல்லது புதியதாக தொடங்க விரும்பினால் ஏற்கனவே உள்ள களஞ்சியத்தை குளோன் செய்யவும்.

இயல்பாக திருப்பிச் செலுத்தவும் Refs/for/master

You can configure Git to automatically create a review when a change is pushed.

git config remote.origin.push HEAD:refs/for/master

மறுபரிசீலனை செய்ய

இந்த மாய கிளைக்கு அழுத்தும் போது, ஒரு ஆய்வு தானாகவே Gerrit உருவாக்கப்படும்.

git தள்ளுதல் மூல HEAD:refs/for/master

நீங்கள் முன்னிருப்பு அமைக்க என்றால் Refs / for / மாஸ்டர் மேலே விவரிக்கப்பட்டுள்ளது போல், வெறுமனே

git தள்ள

நீங்கள் தள்ள விரும்பும் commits உடன் 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 தனியார் தள்ள

தனியார் வேலைகள் இணைப்பு தொகுப்புகளைப் போலவே, அவை இயல்பாக மற்றவர்களுக்குத் தெரியும் மற்றும் எந்த ஜென்கின்ஸ் கட்டமைப்பையும் துவக்காது. ஒரு வரைபடத்தை பின்னர் பகிரலாம் அல்லது வெளியிடலாம்.