Lemmy - RazBot
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
miridius@lemmy.world to Programmer Humor@programming.dev · 1 year ago

I realised this today

lemmy.world

message-square
26
fedilink
616

I realised this today

lemmy.world

miridius@lemmy.world to Programmer Humor@programming.dev · 1 year ago
message-square
26
fedilink
  • LostXOR@fedia.io
    link
    fedilink
    arrow-up
    59
    ·
    1 year ago

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

    • perviouslyiner@lemmy.world
      link
      fedilink
      arrow-up
      37
      ·
      1 year ago

      And then notice the spelling error.

      • YIj54yALOJxEsY20eU@lemm.ee
        link
        fedilink
        arrow-up
        23
        ·
        1 year ago

        My spelling errors only come into existence after I commit.

      • Dhs92@programming.dev
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        Just another free PR ;)

      • Korne127@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 year ago

        Instant commit --amend + push --force

        • Omid Mnz@programming.dev
          link
          fedilink
          arrow-up
          6
          ·
          1 year ago

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

          • xmunk@sh.itjust.works
            link
            fedilink
            arrow-up
            3
            ·
            1 year ago

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

            • rufus@lemmy.sdf.org
              link
              fedilink
              arrow-up
              4
              ·
              1 year ago

              Wait what is the difference between the two?

              • xmunk@sh.itjust.works
                link
                fedilink
                arrow-up
                11
                ·
                1 year 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.

    • SkyeStarfall@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      Don’t want to be the cause of a CVE now, do we?

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.62K users / day
  • 5.02K users / week
  • 9.16K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.2K subscribers
  • 1.37K Posts
  • 46.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org