Skip to content

Git

Rebase commits onto another branch

Source

Note

This will apply the changes to the active branch. You may need to create a new branch before doing this.

git rebase HEAD~$N --onto $BRANCH