A Git Gerrit command-line client.
push
: Push your current branch to Gerritcheckout CL
: Checkout a CL by numberfetch CL
: Fetch a CL by numberview [CL]
: View a CL, by default the current CL, in your web browser query [--mine|--needs-review] [QUERY]
: Search for CLsOne of Gerrit's best features is its native support for stacks of CLs. However,
it's not always easy to keep stacks up to date. git-gr
provides a number of
tools to help:
restack
: Restack CLs, updating CLs against the base branch and rebasing
subsequent CLs on previous ones.
restack push
: Push a stack of CLs to Gerrit after restackingrestack this
: Restack a single CL on its immediate parentrestack continue
Continue an in-progress restack after fixing conflictsrestack abort
Abort an in-progress restack instead of fixing conflictsup
: Checkout this CL's parentdown
: Checkout this CL's childtop
: Checkout the top-most CL in the current stack (this CL will be
targeting the base branch and can be merged next)git-gr
also offers several lower-level utility commands:
cli
: Run a gerrit
command on the remote serverapi
: Make a request to the Gerrit REST API