జెర్రిట్ తో కలిసి పనిచేయడం

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

లేదా మీరు కొత్తగా ప్రారంభించడానికి కావాలా ఇప్పటికే రిపోజిటరీ క్లోన్.

రిఫ్/ఫార్/మాస్టర్లో డిఫాల్ట్గా పుష్ చేయడానికి

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

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

సమీక్షను సృష్టించుట

ఈ మాయా శాఖకు నెట్టడం, ఒక సమీక్ష స్వయంచాలకంగా Gerrit న సృష్టించబడుతుంది.

git పుష్ మూలం HEAD:refs/for/master

మీరు పైన వివరించిన విధంగా రిఫ్స్/ఫోర్స్/మాస్టర్కు డిఫాల్ట్ను కాన్ఫిగర్ చేస్తే,

git push

మీరు ప్రస్తుతం మీ బ్రాంచ్ను సూచించినట్లయితే, మీరు బదిలీ చేయాలనుకుంటున్న బ్రాంచ్ను మీరు సూచిస్తారు. ఆదర్శవంతంగా, మీరు సమస్య కోసం ఫీచర్ / బగ్ బ్రాంచ్లో పని చేయాలి. అప్పుడు మీరు చేయవచ్చుః

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 ప్రైవేట్ త్రో

ప్రైవేట్ పనులు పాచ్సెట్స్ మాదిరిగానే ఉంటాయి, కానీ అవి డిఫాల్ట్గా ఇతరులకు కనిపించవు మరియు జెంకిన్స్ బిల్డ్లను ప్రారంభించవు. ఒక డ్రాఫ్ట్ అప్పుడు భాగస్వామ్యం చేయవచ్చు లేదా ప్రచురించవచ్చు.