How to change a patchset and push it as a new one?

后端 未结 3 1172
北恋
北恋 2021-02-04 06:00

Is it possible to fetch an existing patchset (that has not been merged into my local machine), change and push it as a new Patch Set?

3条回答
  •  北海茫月
    2021-02-04 06:50

    Just follow the below steps:

    1. cherry-pick your patch (from gerrit UI) to your machine.
    2. Modify the content and run git add .
    3. Amend the last commit using git commit --amend that pops up a COMMIT-EDITMGS window. Save it accordingly.
    4. Push your change to gerrit using git push origin HEAD:refs/for/branch_name

      It will create a new patch set.

提交回复
热议问题