git rebase --onto
code:bash
git rebase --onto 新しい派生元 現在の派生元 現在のブランチ
#git
#rebase