This file contains 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
# branch/current <- Branch with commits | |
# branch/main <- Branch that should have been branched from | |
# branch/other <- Branch that was actually branched from | |
git checkout branch/main | |
git checkout -b branch/correct | |
git rebase --onto branch/correct branch/other branch/current |