Skip to content

Instantly share code, notes, and snippets.

View Raymundo1's full-sized avatar
🏠
Working from home

Ray Raymundo1

🏠
Working from home
View GitHub Profile
@Raymundo1
Raymundo1 / git_rebase.sh
Created June 2, 2023 17:53
Git Rebase #git
# 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