Gerrit identifies your patch based on change-Id. For various reasons, the local repository where you originally submitted the code is broken. At this time, you can remove your patch from Gerrit, because you can no longer git commit -a at this time. --amend, you can write your original Change-Id at the bottom of the commit log, or you can submit it to your original change to generate an updated patch.
Github supports it, but if you need amend
已经push过
的内容,修改后push时需要加上-f/--force
parametershttps://help.github.com/artic...
The reason why gerrit adopts this mode is to facilitate viewing and modification. Each amend only forms one push set, and the granularity is small
Gerrit identifies your patch based on change-Id. For various reasons, the local repository where you originally submitted the code is broken. At this time, you can remove your patch from Gerrit, because you can no longer git commit -a at this time. --amend, you can write your original Change-Id at the bottom of the commit log, or you can submit it to your original change to generate an updated patch.