• justme@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    ·
    1 day ago

    I’m not that accustomed with it myself, so my question: how can you bork your local repo so you can’t roll back? Did you tinker in the .git folder? xD

    • 404@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      23 minutes ago

      There are many ways. Like the other user said, fucking up a merge/rebase then fucking up the merge abort.

      Or (one of my personal favorites) accidentally typing git reset --hard HEAD~11 instead of HEAD~1

    • trxxruraxvr@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      15 hours ago

      I’ve had colleagues who’d panic when they had merge conflicts, then fuck something up, remove the whole dir and create a new clone. If you’re competent I don’t think it should be necessary.