git - Removing patch from Gerrit -
i submitted patch review gerrit, created review page. wanted update patch modifications, unfortunately ended submitting new patch, depended on old one, along new corresponding review page. happened because did not amend previous commit, rather made new commit , pushed review.
what i'm wondering if there way revert recent commit, amend changes older commit , have reflected on gerrit, removing recent review page , update old one.
feel free edit question, or ask me if i'm not being clear.
sure possible. there 2 tasks - clean git repository , update gerrit.
to clean git, there couple approaches. automatic method squash 2 current commits using git rebase -i
. option git checkout head^ && <make edits> && git commit --amend
.
once happy git tree, push gerrit creating new patch set original change. use 'abandon' button on change made accidentally , should go.
Comments
Post a Comment