# change the parent (oldparent) of a commit to another parent (new parent) git rebase --onto <newparent> <oldparent> git rebase --onto <newparent> <oldparent> <up-to>