• The Assman@sh.itjust.works
      link
      fedilink
      arrow-up
      8
      ·
      8 months ago

      My commit messages have gotten extremely lazy since I start squashing all my commits down to one. I just describe the PR on the first commit message and write nonsense in all the others.

      • grrgyle@slrpnk.net
        link
        fedilink
        arrow-up
        5
        ·
        8 months ago

        I’ve been adding the commit shas + messages to the final description, if anyone wants to see my exploratory work.

        • xmunk@sh.itjust.works
          link
          fedilink
          arrow-up
          2
          ·
          8 months ago

          I know that if you are on the local repository where the commits were originally created they’ll remain accessible through recovery methods but AFAIK orphaned commits aren’t synced to other machines.

          • grrgyle@slrpnk.net
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            7 months ago

            That’s correct. This is for work, which uses GitHub. The dangling commits remain accessible via their sha through the web ui, so I can link them in the PR description. I don’t put them in the actual commit message.

            I think these are garbage collected eventually, but no idea on cadence. It’s long, anyway.