summaryrefslogtreecommitdiff
path: root/doc/source/usage.rst
blob: abbdeeaab6ebcc6f29b4241836ce5e55cc50c8ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
=======
 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

If you want to subscribe some reviewers::

    git review --reviewers a@example.com b@example.com

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

If you want to be able to push a change which has a merge conflict with the
remote branch::

    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

If you want to see a list of open reviews::

    git review -l

If you just want to do the commit message and remote setup steps::

    git review -s


.. 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