tips
tips copied to clipboard
Rebase subtree onto new parent
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