The Enchanted Tavern
  • Communities
  • Create Post
  • 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
113
fedilink
797

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
113
fedilink
alert-triangle
You must log in or register to comment.
  • @Pacmanlives@lemmy.world
    link
    fedilink
    18•
    edit-2
    1 year ago

    git commit -m “changed somethings “

    git push origin master

    • jelloeater
      link
      fedilink
      English
      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.

      • @zcoyle@programming.dev
        link
        fedilink
        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

      • @Valmond@lemmy.mindoki.com
        link
        fedilink
        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
          link
          fedilink
          English
          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.

      • @TheUncannyObserver@lemmy.dbzer0.com
        link
        fedilink
        1•
        edit-2
        1 year ago

        deleted by creator

      • @Meowoem@sh.itjust.works
        link
        fedilink
        2•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
          link
          fedilink
          English
          1•1 year ago

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

      • @MajorHavoc@lemmy.world
        link
        fedilink
        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
          link
          fedilink
          English
          3•1 year ago

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

      • @adrian783@lemmy.world
        link
        fedilink
        3•1 year ago

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

        • @Valmond@lemmy.mindoki.com
          link
          fedilink
          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?

        • @MajorHavoc@lemmy.world
          link
          fedilink
          7•1 year ago

          Not with that attitude! /s

          • jelloeater
            link
            fedilink
            English
            5•1 year ago

            Force push Fridays!

        • @herrvogel@lemmy.world
          link
          fedilink
          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.

      • @sloppy_diffuser@sh.itjust.works
        link
        fedilink
        English
        2•1 year ago

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

        • jelloeater
          link
          fedilink
          English
          1•1 year ago

          I tired that, still was having issues, weeeird.

    • @MajorHavoc@lemmy.world
      link
      fedilink
      17•1 year ago

      You forgot this --force flag.

      • @Valmond@lemmy.mindoki.com
        link
        fedilink
        7•1 year ago

        I’m too lazy, I use -f

Programmer Humor@programming.dev

!programmer_humor@programming.dev
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
  • 34 users / day
  • 551 users / week
  • 1.48K users / month
  • 4.03K users / 6 months
  • 1 subscriber
  • 1.44K Posts
  • 48.1K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • UI: unknown version
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org