• LostXOR
    link
    fedilink
    5725 days ago

    Gotta review the 5 line PR ten times just to make absolutely totally sure there’s nothing wrong with it before submitting it.

      • @Korne127
        link
        525 days ago

        Instant commit --amend + push --force

        • Omid Mnz
          link
          fedilink
          625 days ago

          Prefer --force-with-lease. It doesn’t make a difference in this scenario, but it’s a safer habit/default.

          • @[email protected]
            link
            fedilink
            325 days ago

            There is no reason to force push anymore - force with lease is always preferable. So said, a frequent rebaser.

              • @[email protected]
                link
                fedilink
                1125 days ago

                Force with lease will send up what your local thinks the most recent commit on the branch was and the host will reject the push if it knows of a more recent commit on that branch. Basically, it saves you from overwriting a commit you didn’t realize existed.