Yeah learned this the hard way.

  • kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    18
    ·
    2 days ago

    Think of it like your browser history but for Git. It’s a list of the SHAs related to your recent operations.

    And because Git is a content-addressable data store, a SHA is basically like a URL. Even if a branch no longer exists, if you know the SHA it pointed to then you can still check out the exact contents of that branch. The reflog helps you find that.

    • theneverfox@pawb.social
      link
      fedilink
      English
      arrow-up
      17
      ·
      2 days ago

      Goddamit… It’s ref log, not re flog. I thought this was related to blame and never touched it lmao

      • hayvan@feddit.nl
        link
        fedilink
        arrow-up
        4
        ·
        2 days ago

        Re flog is when your devs don’t follow your guides and mess uo git history again.

        • theneverfox@pawb.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 day ago

          I legit thought it was to publicly call out a user to be (metaphorically) flogged

          And while it’s not how I do things, I totally understand the impulse. Tell me that doesn’t sound like something that could exist