• NocturnalMorning@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 month ago

    Yeah, imagine you accidently commit over weeks of work, or hell, if it’s the main branch, and you deleted the other origin branch prior to merging, it could be a lot more than a few weeks worth of work. The revert to a previous commit… shutters.

    • wise_pancake@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      That’s when you call in a wizard.

      They do git necromancy and sacrifice a goat to the reflog to recover your code