Lemdro.id
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
miridius@lemmy.world to Programmer Humor@programming.dev · 1 年前

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 年前
message-square
26
fedilink
  • LostXOR@fedia.io
    link
    fedilink
    arrow-up
    59
    ·
    1 年前

    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 年前

      And then notice the spelling error.

      • YIj54yALOJxEsY20eU@lemm.ee
        link
        fedilink
        arrow-up
        23
        ·
        1 年前

        My spelling errors only come into existence after I commit.

      • Dhs92@programming.dev
        link
        fedilink
        arrow-up
        6
        ·
        1 年前

        Just another free PR ;)

      • Korne127@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        1 年前

        Instant commit --amend + push --force

        • Omid Mnz@programming.dev
          link
          fedilink
          arrow-up
          6
          ·
          1 年前

          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 年前

            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 年前

              Wait what is the difference between the two?

              • xmunk@sh.itjust.works
                link
                fedilink
                arrow-up
                11
                ·
                1 年前

                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 年前

      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: !programmer_humor@programming.dev

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.

  • 2.2K users / day
  • 4.5K users / week
  • 8.16K users / month
  • 17.7K users / 6 months
  • 53 local subscribers
  • 23.3K subscribers
  • 1.41K Posts
  • 51.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • UI: 0.19.8
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org