minus-squareimplicit_cast@kbin.socialtoMemes@lemmy.ml•I dearly needed to hear thatlinkfedilinkarrow-up5·1 year agogit reflog! It gives the history of commits that your HEAD has previously pointed at. If a rebase goes bad, you can fish out your old HEAD and recover your pre-rebase state. linkfedilink
git reflog
! It gives the history of commits that yourHEAD
has previously pointed at.If a rebase goes bad, you can fish out your old
HEAD
and recover your pre-rebase state.