You'll also need to upload an SSH key to be able to commit changes for review.
Don't forget to select a username.
Finally, the email address specified in your git config must match one the email address registered with your Gerrit account.
Note for Savoir-faire Linux employees: please continue to use your @savoirfairelinux.com email address.
To Know your Git Config
git config --list
To Test your SSH Access
To check that your SSH access is properly setup, 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.gitConnection to review.jami.net closed.
Gerrit is the official git repository.
To update the configuration
You must update your remote information to use now the Gerrit repository. To do that, update your origin url:
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 patchsets and will reject pushes until you install it. Simply copy 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
For instance, you may want a "private" remote to push to; open <project_dir>/.git/config and add: