Cannot merge in Gerrit

前端 未结 3 1535
日久生厌
日久生厌 2021-01-30 11:48

Whenever I sent a review to Gerrit and if the review is pending for some time, I am getting cannot merge message in Gerrit.

I understood its coming because

3条回答
  •  天命终不由人
    2021-01-30 12:08

    You do NOT need to abandon the current change on Gerrit to solve the "cannot merge" issue. All you need to do is:

    1. Update your local repository (git fetch)
    2. Run a manual rebase (git rebase)
    3. Resolve the conflicts (git mergetool, git rebase --continue)
    4. Commit (amend) the result (git commit --amend)
    5. Push a new patchset to Gerrit (git push)

提交回复
热议问题