Gerrit uses git commit --amend, but GitHub does not support it at all, which feels quite strange.
Which expert knows and can explain it?
phpcn_u15822017-05-02 09:52:16
Github supports it, but if you need amend已经push过
的内容,修改后push时需要加上-f/--force
parameters
https://help.github.com/artic...
阿神2017-05-02 09:52:16
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
大家讲道理2017-05-02 09:52:16
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.