Force push to Gerrit even with no new changes

[亡魂溺海] 提交于 2021-02-07 20:25:48

问题


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 rejects this with

 ! [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 flag has no effect.


回答1:


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



来源:https://stackoverflow.com/questions/51731569/force-push-to-gerrit-even-with-no-new-changes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!