tips icon indicating copy to clipboard operation
tips copied to clipboard

Rebase subtree onto new parent

Open srigi opened this issue 8 years ago • 0 comments

Sometimes you made a mistake and want to attach couple of commits to another branch

aa -- bb -- cc -- dd -- ee
 \ -- ff -- gg
git rebase --onto NEW_BASE OLD_BASE
git rebase --onto gg cc
aa -- bb -- cc
 \ -- ff -- gg -- dd -- ee

srigi avatar Nov 03 '16 20:11 srigi