在 Gerrit 中,修改其他作者推送的提交

in Gerrit, amend commit pushed by other author

如果我有提交的更改 ID。我可以修改其他作者推送的提交吗?如果可以,我需要做什么?

像这样?

git commit --amend --no-verify -m '<message> Change-Id: <change-id>'
git push origin HEAD:refs/for/master

这是如何完成的:

git fetch origin refs/changes/[CD]/[EFG]/[HI] && git checkout FETCH_HEAD
... do the fixes ...
git commit --amend --no-edit
git push origin HEAD:refs/for/master