• DaddleDew@lemmy.world
    link
    fedilink
    arrow-up
    43
    arrow-down
    1
    ·
    edit-2
    5 hours ago

    Back when I was still on Reddit, I made a comment on a chess sub saying that in chess you are not allowed to make your king “commit suicide” to explain how a stalemate works. One day later I got a message about suicide prevention because someone flagged me for promoting suicide.

    What a dumb site.

    • exu@feditown.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      5 hours ago

      Just base your stuff on their stuff and hassle everyone to merge that other PR.

    • NocturnalMorning@lemmy.world
      link
      fedilink
      arrow-up
      8
      arrow-down
      1
      ·
      edit-2
      6 hours 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.

      • WimpyWoodchuck@feddit.org
        link
        fedilink
        arrow-up
        11
        ·
        5 hours ago

        I don’t know if you’re joking, but in case you’re not: git reflog and git reset --hard HEAD@{n} is your friend. You can undo almost anything. Deleted commits and branches aren’t really deleted. Remotely deleted branches can be pushed again.

        Except for an (accidental) git restore/git reset. Those are permanent and can’t be undone.

        • rooroo@feddit.org
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          3 hours ago

          Even git reset can be undone by a lot of editors. At least IntelliJ has an excellent local history that works much like git. Sure it’s a pain if you touched several files but that’ll teach you to atomify your commits.

          Edit: Plus, git reset itself does nothing of note really, but I’m sure you know. Needs the —hardflag to do any meaningful damage.