• Luvon@beehaw.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

    Worst words heard today: reset has reset to the last head that was pushed to remote

    Goodbye three local commits, I’ll miss you

    • implicit_cast@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      git 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.