问题
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