我正在使用 Gerrit 2.4.2 版。我有一个分支master
,我创建了一个新分支,名为 newbranch
. 然后我将一些更改推送到遥控器 (Gerrit's) newbranch
。在 Gerrit 中验证后,我将更改合并到newbranch
.
不,我想合并newbranch
to master
,发送更新master
(与来自 的更改合并newbranch
),然后删除newbranch
分支。
我试过这样做:
git fetch
git checkout master
git merge newbranch
git push origin master:refs/for/master
但是 Gerrit 回馈了这条信息:
! [remote rejected] master -> refs/for/master (no new changes)
我应该怎么办?