Add Block about rebasing a change. 81/62381/3
authorAric Gardner <agardner@linuxfoundation.org>
Fri, 22 Nov 2019 17:58:24 +0000 (12:58 -0500)
committerAric Gardner <agardner@linuxfoundation.org>
Fri, 22 Nov 2019 19:30:28 +0000 (19:30 +0000)
I think this is an used enough idiom
for it to warrent inclusion in the gerrit doc.

Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I5664064f90f143540dfb3e97e0d9c5bd5383366f

docs/gerrit.rst

index 623dd81..14be77d 100644 (file)
@@ -383,6 +383,21 @@ dependent change and then cherry-pick our patch on top of the change.
 
       git review -R
 
+Rebasing a change against master
+================================
+
+In the case that your patchset cannot be re-based via the U/I (merge conflict)
+
+   .. code-block:: bash
+
+      git pull origin master
+      git review -d 12345
+      git rebase master
+      "fix conflicts"
+      git add *
+      git rebase --continue
+      git review
+
 Code Review
 ===========