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

Categories

HOME
cakephp
client
push-notification
youtube-api-v3
ezpublish
podio
vault
tomcat6
wheelnav.js
google-apps-marketplace
event-handling
zebra-printers
hapi
opentracing
libtiff
http-status-code-504
jqwidget
pass-by-reference
dxf
p-value
angular2-aot
smb
uninstall
minitab
vision
unboundid
iframe-resizer
http-status-code-503
exuberant-ctags
webtest
xmlreader
gammu
appfabric
simplexml
libvpx
dynamics-crm-2013
occlusion
splice
lumberjack
dism
avro4s
reportingservices-2005
flashair
convertapi
paxos
lowpass-filter
carrot
memory-alignment
flow-control
synchronous
wdf
heidisql
instant
azure-sdk
httplistener
log4c
flash-cs5
captivenetwork
dataview
ios4
rhino-servicebus
revolution-r
freelancer.com-api
python-3.2
libressl
splash
system32
gui-test-framework
xsockets.net
ms-project-server-2010
qt-faststart
mylyn
yui-compressor
mqx
type-equivalence
pvrtc
simba
funscript
assembly-loading
external-accessory
javax.script
table-footer
.nettiers
routedevent
mirah
javap
anti-piracy
private-members
caching-application-block
misv

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App