即使没有任何新变化也强制推向Gerrit

问题描述:

我想将补丁集推送到已经推送的Gerrit.最初,在发送补丁程序时,构建系统没有触发.我需要通过重新提交所有补丁来再次触发它.

I want to push a patchset to Gerrit which has already been pushed. Originally when the patches were sent up, the build system did not trigger. I need to trigger it again by resubmitting all patches.

Gerrit拒绝

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

我知道没有新的变化,但无论如何我都想推动.我该怎么办?

I know there are no new changes but I want to push anyway. How can I do this?

-force 标志无效.

执行"commit --amend,更改提交消息,然后再次推送.

Execute "commit --amend, change the commit message and push again.