Git Pro Tips
Backup Branch Before Rebase
🗓️ Published: 4/15/2026 Originally on X: 12/11/2022

Before doing a tricky rebase, create a backup of your current branch:
git branch <my-branch>-bak
This creates another reference to the current branch tip without switching to it.