• subtext@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    Can you explain what this does? I’m thinking something along the lines of reverting all commits except the very first one?

    • Ekky@sopuli.xyz
      link
      fedilink
      arrow-up
      3
      ·
      8 months ago

      You are correct! It sets HEAD to the first commit and then force pushes, deleting everything after HEAD.

      Though, it only affects the currently selected branch.