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

Manager: This task only takes 30 minutes. Why did it take you the whole day?

programming.dev

message-square
97
fedilink
808

Manager: This task only takes 30 minutes. Why did it take you the whole day?

programming.dev

hypnotic_nerd@programming.dev to Programmer Humor@programming.devEnglish · 1 year ago
message-square
97
fedilink
  • Pacmanlives@lemmy.world
    link
    fedilink
    arrow-up
    22
    arrow-down
    1
    ·
    edit-2
    1 year ago

    git commit -m “changed somethings “

    git push origin master

    • MajorHavoc@lemmy.world
      link
      fedilink
      arrow-up
      20
      arrow-down
      2
      ·
      1 year ago

      You forgot this --force flag.

      • Valmond@lemmy.mindoki.com
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        I’m too lazy, I use -f

    • jelloeater@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Do you always have to do origin master? I’ve seen it where sometimes just git push works and other times not.

      • MajorHavoc@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        I was being more evil than that, saying that if one is gonna push direct to main, might as well maximize the possible damage to everyone else’s branch.

        • jelloeater@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Lol why not just delete the whole project from GitHub… I mean, everyone has a copy, right?😱

      • zcoyle@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        1 year ago

        where it Just Works, the branch is set up to track a remote branch

        https://git-scm.com/book/en/v2/Git-Branching-Remote-Branches

      • adrian783@lemmy.world
        link
        fedilink
        arrow-up
        5
        arrow-down
        2
        ·
        1 year ago

        uh in any actual company you almost never push to origin master. so I think it’s a joke.

        • MajorHavoc@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          1 year ago

          Not with that attitude! /s

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

            Force push Fridays!

        • Valmond@lemmy.mindoki.com
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 year ago

          Depends on the configuration right?

          You can work on your branch and then push that to integration for example.

          I mean you’re not working on your local master/main branch right?

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

          In most actually companies you can try push to origin master, but it’ll likely get rejected by the repo’s security policies.

      • Valmond@lemmy.mindoki.com
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        push origin your/branch

        Pushes, you guessed it, your/branch!

        Head is usually your checked out working branch if you’re not in a headless state, right?

        • jelloeater@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          Force push main, straight to jail🤣

          Yup yup, usually you’re on a branch, sometimes a tag. I mean it’s all just pointers to references at the end of the day. I tend to treat Git like a story book, some folks still act like it’s SVN.

      • sloppy_diffuser@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        https://git-scm.com/docs/git-push#Documentation/git-push.txt-pushautoSetupRemote

        • jelloeater@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I tired that, still was having issues, weeeird.

      • Meowoem@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        1 year ago

        I think it depends what branch your local version of the repo is set to. If you’re already in master then it’ll push there, if you’re in a testing branch then you can push it straight to master instead by telling it to

        • jelloeater@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          I just meant it not auto creating a new matching named branch.

      • The Uncanny Observer@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        3
        arrow-down
        2
        ·
        1 year ago

        That’s part of the joke, I think. If it’s a repo more than just you use, you would almost never push directly to the main branch.

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.72K users / day
  • 4.51K users / week
  • 8.16K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.4K subscribers
  • 1.4K Posts
  • 48.2K 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