Yeah learned this the hard way.

  • chaos@beehaw.org
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago

    I only use it when I’ve royally messed up and the commit I need to get back is no longer referenced anywhere. Accidentally deleted a branch, finished a merge or rebase before realizing I messed up, that kind of thing, just use the reflog to find it again, get a branch pointing to it, then try again.