diff --git a/docs/Gerrit/gerrit.md b/docs/Gerrit/gerrit.md index 04d6e5cb69f..2da824a2c92 100644 --- a/docs/Gerrit/gerrit.md +++ b/docs/Gerrit/gerrit.md @@ -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 `` with your +gerrit id. + ``` -cd -git review -R +[remote "gerrit"] + url = ssh://@gerrit.hyperledger.org:29418/fabric.git + fetch = +refs/heads/*:refs/remotes/gerrit/* ``` +Then submit your change with `git review`. + +``` +$ cd +$ 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