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

How to setup Gerrit without any authentication?
How to start Gerrit in Windows 7 after Initialization
How do I merge Gerrit instances without losing history
Buildbot nightly build is failing to checkout the branch
Serve custom commit-msg hook from Gerrit
Customize Gerrit sign in page
Gerrit rejected push for valid LDAP member
Gerrit submit change after abandoning its parent
Gerrit - Reload Plugins to incorporate changes
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?

Categories

HOME
clips
proxy
urbancode
kde
layout
appx
session
fme
react-router
adb
cmd
microservices
ebean
blueprintjs
acquia
ios-charts
wheelnav.js
dax
spring-tool-suite
ups
openrefine
connection-string
google-cloud-speech
karma-jasmine
dbext
web-sql
apache-commons-io
uninstall
neo4j-spatial
libssl
kendo-datasource
google-rich-snippets
stormpath
calibre
perlin-noise
lxd
repo
mapbox-gl
force-layout
sequential
picasso
overriding
git-merge
service-discovery
broadcastreceiver
galen
nomethoderror
galleria
logfiles
flickr-api
datastax-startup
sqlclient
memory-alignment
flutterwave
sqldf
chord-diagram
cubes
instant
azure-virtual-network
nsfilemanager
ctest
actionbardrawertoggle
skype4py
captivenetwork
pagerank
iad
vhd
python-3.2
computer-algebra-systems
notify
jsonpickle
coldbox
preferences
starcluster
dealloc
jboss-weld
android-2.2-froyo
meteor-velocity
fmod
access-rights
google-cloud-save
coverflow
factory-method
trusted
hosts-file
osql
nsmanagedobject
window-management
javax.script
pyinotify
floating
gamequery
dmx512
revisions
mtj
rtml
document-conversion
uiq3

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App