Skip to content

Commit

Permalink
Update git review usage.
Browse files Browse the repository at this point in the history
Add more popular way to usage git review with automatic push to
corresponding branch and to support update patch.

Change-Id: Ica27111dd4a26bae89f022593320e4810104325b
Signed-off-by: Baohua Yang <baohyang@cn.ibm.com>
  • Loading branch information
yeasy committed Jul 31, 2016
1 parent 69345fa commit ef8593f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions docs/Gerrit/gerrit.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,32 @@ be reversed as well.
Currently, Gerrit is the only method to submit a change for review. **Please review
the [guidelines](changes.md) for making and submitting a change**.

### Use git review

**Note:** if you prefer, you can use the [git-review](#git-review) tool instead
of the following. e.g.

Add the following section to `.git/config`, and replace `<USERNAME>` with your
gerrit id.

```
cd <your clone dir>
git review -R
[remote "gerrit"]
url = ssh://<USERNAME>@gerrit.hyperledger.org:29418/fabric.git
fetch = +refs/heads/*:refs/remotes/gerrit/*
```

Then submit your change with `git review`.

```
$ cd <your code dir>
$ git review
```

When you update your patch, you can commit with `git commit --amend`, and then
repeat the `git review` command.

### Not Use git review

Directions for building the source code can be found [here](../dev-setup/build.md).

When a change is ready for submission, Gerrit requires that the
Expand Down

0 comments on commit ef8593f

Please sign in to comment.