4 ms·
> But undoing a rebase? Oh god you're in for a lot of pain. It's actually pretty easy. You either make a checkpoint tag before you start the rebase, and rese
by tomjakubowski 2y ago
> But undoing a rebase? Oh god you're in for a lot of pain.
It's actually pretty easy. You either make a checkpoint tag before you start the rebase, and reset to it if you notice something went wrong; or, if you forgot to make the checkpoint, check the reflog and find the commit you started from, and reset to that.
Reflog has a flag which adds timestamps to every entry, which I find is helpful for this:
git reflog --date=iso