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
# If you’re not entirely comfortable with git rebase, | |
# you can always perform the rebase in a temporary branch. | |
# That way, if you accidentally mess up your feature’s history, | |
# you can check out the original branch and try again. For example: | |
git checkout feature | |
git checkout -b temporary-branch | |
git rebase -i main | |
# [Clean up the histroy] | |
# if MR, no need for following two commands | |
# git checkout main |