Home > Back-end >  How to update the cherry picked commit on gerrit?
How to update the cherry picked commit on gerrit?

Time:07-07

I made a commit A to a branch. It's not merged yet. My friend cherry picked my commit and made a new commit B. Now they form a relation chain right? So, If I amend my commit A, What is the best way to get my new changes in my friend's branch?

PS: On amending the commit, the commit hash will change and create a new patchset.

CodePudding user response:

It's not a good practice cherry-picking a commit from a open change, but if this was needed, now it's necessary to cherry-pick the new commit, amend the original commit and push to Gerrit, creating a new patch-set.

  • Related