Last active
February 10, 2026 20:48
-
-
Save christophermark/cb41e35b5dfc63644f80111aecfe4333 to your computer and use it in GitHub Desktop.
Git Rebase --onto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://stackoverflow.com/questions/29914052/how-to-git-rebase-a-branch-with-the-onto-command/29916361#29916361 | |
| git rebase --onto <newparent> <oldparent> | |
| // Most frequent usage, after base branch is squashed and merged into main | |
| git rebase --onto main [SHA before first commit on your branch] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment