即使没有任何新变化也强制推向Gerrit [英] Force push to Gerrit even with no new changes
本文介绍了即使没有任何新变化也强制推向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.
这篇关于即使没有任何新变化也强制推向Gerrit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文