gerrit
Switch branches, keep same change-set
I have a change-set in Gerrit that for a while has been based off of the master branch. So, my push commands have looked like this: git push origin HEAD:refs/for/master But now, I need to start working off of a topic branch (but still using the same change-set). So, I tried pushing like this: git push origin HEAD:refs/for/myTopicBranch But, this seems to have created a whole new change-set, rather than simply altering the metadata of my current change (as updating a topic does). Is there a way associate a change-set with a different branch after creation?
No. You can't do that. If you want to work in a different branch, push to this new branch like you have done (git push origin HEAD:refs/for/myTopicBranch) and abandon (using the Gerrit web interface) the original change.
Related Links
Adding gerrit label, but not able to see it properly in review page
Make a list inside another list in a gerrit comment
How to assign access rights to a Gerrit project using API / SSH?
How to change a patchset and push it as a new one?
Gerrit patch comparision for Sql files
How to 'reply done' in Gerrit when I address people code review comment
How to search for changesets in Gerrit than need to be rebased?
Gerrit GitBlit Plugin shows no Branch Graph
Bad permissions for Gerrit Administrator
Using REST APIs
Gerrit trackingid not working
Gerrit: remote rejected (you are not allowed to upload merges) even though I allowed “Push merge commit”
gerrit: access gerrit repositories as root user by using public key of another user
What does “Reply 'Done'” conventionally mean in Gerrit?
Restrict which branches can be tagged
not to create new commit-id on gerrit