2014-12-01 14:34:28 -05:00
|
|
|
=======
|
|
|
|
Usage
|
|
|
|
=======
|
|
|
|
|
|
|
|
Hack on some code, then::
|
|
|
|
|
|
|
|
git review
|
|
|
|
|
|
|
|
If you want to submit that code to a branch other than "master", then::
|
|
|
|
|
|
|
|
git review branchname
|
|
|
|
|
|
|
|
If you want to submit to a different remote::
|
|
|
|
|
|
|
|
git review -r my-remote
|
|
|
|
|
|
|
|
If you want to supply a review topic::
|
|
|
|
|
|
|
|
git review -t topic/awesome-feature
|
|
|
|
|
2014-12-04 11:42:00 -05:00
|
|
|
If you want to subscribe some reviewers::
|
|
|
|
|
|
|
|
git review --reviewers a@example.com b@example.com
|
|
|
|
|
2014-12-01 14:34:28 -05:00
|
|
|
If you want to disable autogenerated topic::
|
|
|
|
|
|
|
|
git review -T
|
|
|
|
|
|
|
|
If you want to submit a branch for review and then remove the local branch::
|
|
|
|
|
|
|
|
git review -f
|
|
|
|
|
2022-07-15 17:24:11 +00:00
|
|
|
If you want to be able to push a change which has a merge conflict with the
|
|
|
|
remote branch::
|
2014-12-01 14:34:28 -05:00
|
|
|
|
|
|
|
git review -R
|
|
|
|
|
|
|
|
If you want to download change 781 from gerrit to review it::
|
|
|
|
|
|
|
|
git review -d 781
|
|
|
|
|
|
|
|
If you want to download patchset 4 for change 781 from gerrit to review it::
|
|
|
|
|
|
|
|
git review -d 781,4
|
|
|
|
|
|
|
|
If you want to compare patchset 4 with patchset 10 of change 781 from gerrit::
|
|
|
|
|
|
|
|
git review -m 781,4-10
|
|
|
|
|
2015-06-12 11:37:47 -04:00
|
|
|
If you want to see a list of open reviews::
|
|
|
|
|
|
|
|
git review -l
|
|
|
|
|
2014-12-01 14:34:28 -05:00
|
|
|
If you just want to do the commit message and remote setup steps::
|
|
|
|
|
|
|
|
git review -s
|
2018-10-15 15:58:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
If using multiple SSH keys (identities) or SSH keys with passphrases, you
|
|
|
|
may wish to use a tool like `ssh-agent`__, `Gnome Seahorse`__ or `KDE
|
|
|
|
KWallet`__ to avoid manual SSH configuration or frequent passphrase
|
|
|
|
requests.
|
|
|
|
|
|
|
|
__ https://www.ssh.com/ssh/agent
|
|
|
|
__ https://wiki.gnome.org/Apps/Seahorse
|
|
|
|
__ https://userbase.kde.org/KDE_Wallet_Manager
|