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

I realised this today

lemmy.world

message-square
26
link
fedilink
618

I realised this today

lemmy.world

miridius@lemmy.world to Programmer Humor · 1 year ago
message-square
26
link
fedilink
  • 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
      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
        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.

Programmer Humor

programmer_humor

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.

  • 335 users / day
  • 4.38K users / week
  • 8.17K users / month
  • 18.1K users / 6 months
  • 2.4K local subscribers
  • 23.3K subscribers
  • 1.39K Posts
  • 52.3K Comments
  • Modlog
  • mods:
  • adr1an
  • Feyter
  • BurningTurtle
  • Pierre-Yves Lapersonne
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org