• xmunk
      link
      fedilink
      arrow-up
      13
      ·
      10 months ago

      Nah, rebase -i, squash, fsck and reflog

      • Rikudou_Sage@lemmings.world
        link
        fedilink
        English
        arrow-up
        11
        ·
        edit-2
        10 months ago

        Must be an interesting work if you never add, commit or push.

        Edit: How the hell did you get the repo without clone?

        • xmunk
          link
          fedilink
          arrow-up
          11
          ·
          10 months ago

          Pshaw, real programmers write out the contents of .git by hand.

          (Also, it was a joke, the last two commands I listed are ones you’ll ideally never need in your life)

          • overcast5348@lemmy.world
            link
            fedilink
            arrow-up
            3
            ·
            9 months ago

            I was scared of reflog too. Had to use it for the first time recently after I accidentally’d a branch that I hadn’t pushed to remote yet. I was so glad that I could recover it all in <5 commands.

      • Valmond@lemmy.mindoki.com
        link
        fedilink
        arrow-up
        5
        ·
        10 months ago

        reflog saved my life once after a stupid misshap.

        All rebase are belong to us (onto, rebase, and ofc interactive) but what’s fsck (I don’t squash personally)?

        • xmunk
          link
          fedilink
          arrow-up
          4
          ·
          10 months ago

          Fsck is File System Check - realistically you should never need to use it.