How to rebase and rename?
- From
Peter Krefting <peter@softwolves.pp.se>
- Date
- Feb 3, 2010, 09:05 UTC
- Message-ID
- <alpine.DEB.2.00.1002030958380.17444@ds9.cixit.se>
Hi!
If I have a repository with a topic branch that is published, and that I want to rebase and republish under a new name, is there an easy way of doing that?
I.e., I want to go from
---C---D topic-1
/
--A---X---X---B masterto
---C---D topic-1
/
/ ---C'---D' topic-2
/ /
--A---X---X---B masterCurrently, I do something along the lines of:
git branch topic-2 topic-1 git rebase master topic-2
but that feels wrong as it creates the "topic-2" branch pointing the the wrong way first. Is there a way to eliminate that step?
-- \\// Peter - http://www.softwolves.pp.se/