$ scp -p -P 29418 review.example.com:bin/gerrit-cherry-pick ~/bin/ $ scp -p -P 29418 review.example.com:hooks/commit-msg .git/hooks/
Client commands and hooks can be downloaded via scp from Gerrit's SSH daemon, and then executed on the client system.
To download a client command or hook, use scp:
$ scp -p -P 29418 review.example.com:bin/gerrit-cherry-pick ~/bin/ $ scp -p -P 29418 review.example.com:hooks/commit-msg .git/hooks/
For more details on how to determine the correct SSH port number, see Testing Your SSH Connection.
Download and cherry-pick one or more changes (commits).
Client hooks can be installed into a local Git repository, improving the developer experience when working with a Gerrit Code Review server.
Automatically generate Change-Id: tags in commit messages.
Aside from the standard Git server side actions, Gerrit supports several other commands over its internal SSH daemon. As Gerrit does not provide an interactive shell, the commands must be triggered from an ssh client, for example:
$ ssh -p 29418 review.example.com gerrit ls-projects
For more details on how to determine the correct SSH port number, see Testing Your SSH Connection.
Standard Git server side command for client side git fetch.
Standard Git server side command for client side git push.
Also implements the magic associated with uploading commits for review. See Creating Changes.
Approve a patch set from the command line.
List projects visible to the caller.
Legacy alias for git receive-pack.
Create a new project and associated Git repository.
Flush some/all server caches from memory.
Display current cache statistics.
Display active client SSH connections.
Display the background work queues, including replication.
Manually trigger replication, to recover a node.
Part of Gerrit Code Review