即使没有新的更改也强制推送到 Gerrit

Force push to Gerrit even with no new changes

我想推送一个已经推送的补丁集到Gerrit。本来打补丁的时候,build system 并没有触发。我需要通过重新提交所有补丁来再次触发它。

Gerrit 拒绝

 ! [remote rejected] HEAD -> refs/for/branch (no new changes)

我知道没有新的变化,但我还是想推送。我该怎么做?

--force 标志无效。

执行"commit --amend,修改commit message再push。