All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Using git repository in paal

Working with gerrit

To configure Gerrit, do the following steps:

  1. Enter Gerrit site and register (using OpenID, e.g. Google Account)

  2. In settings, open SSH Public Keys tab. Add the public key from the machine you're using for development (cat .ssh/ If you don't have one it can be generate using

    ssh-keygen -t rsa

    after invoking that command there will be two files in your .ssh directory : id_rsa and Move to contain your real email address.

  3. Clone write access version of the repository

    git clone --recursive ssh://<login>

  4. Download commit message hook. It will add a line 'Change-Id: ...' to every commit message. This is required by Gerrit and allows keeping many versions of the same commit.

    scp -p -P 29418 <login> <projectDir>/.git/hooks/

  5. To send something for review, use a command:

    git push origin HEAD:refs/for/master

  6. If you want to update your commit (e.g. reviewers requested some changes) do:

    git commit -a --amend
    git push origin HEAD:refs/for/master

  7. When commit is accepted, and you have the privileges to push to master, do:

    git push origin HEAD:master

  8. You can find more info about using Gerrit here:

General rules



Developers mailing list: