DEV Community

Discussion on: A closer look at git rebase

Collapse
 
cheesechoker profile image
Angus MacAskill

git reflog works, but finding the original pre-rebase ref in the mass of reflog output that occurs during a rebase disaster can be difficult, especially for beginners.

I find it way easier to just create a backup branch, giving you an easily, visible "last good" ref you can quickly reset to. After all - this is git, branches are cheap!