Lemmieres
  • 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
99
fedilink
811

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
99
fedilink
  • 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!

      • 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
        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?

    • 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.

    • Meowoem@sh.itjust.works
      link
      fedilink
      arrow-up
      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@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

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

    • 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.

    • TheUncannyObserver@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      arrow-down
      2
      ·
      edit-2
      11 months ago

      deleted by creator

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.

  • 707 users / day
  • 4.67K users / week
  • 8.86K users / month
  • 16K users / 6 months
  • 1 local subscriber
  • 23.2K subscribers
  • 1.36K Posts
  • 42.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org