▲ 792 ▼ Manager: This task only takes 30 minutes. Why did it take you the whole day? (programming.dev) submitted 2 years ago by hypnotic_nerd@programming.dev to c/programmer_humor@programming.dev 95 comments fedilink hide all child comments
[–] Pacmanlives@lemmy.world 21 points 2 years ago* (2 children) git commit -m “changed somethings “ git push origin master permalink fedilink source hideshow 4 child comments replies: [–] MajorHavoc@lemmy.world 18 points 2 years ago (1 child) You forgot this --force flag. permalink fedilink source parent hideshow 2 child comments replies: [–] Valmond@lemmy.mindoki.com 7 points 2 years ago I'm too lazy, I use -f permalink fedilink source parent [–] jelloeater85@lemmy.world 2 points 2 years ago (7 children) Do you always have to do origin master? I've seen it where sometimes just git push works and other times not. permalink fedilink source parent hideshow 14 child comments replies: [–] MajorHavoc@lemmy.world 4 points 2 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 3 points 2 years ago Lol why not just delete the whole project from GitHub... I mean, everyone has a copy, right?😱 permalink fedilink source parent [–] zcoyle@programming.dev 4 points 2 years 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 permalink fedilink source parent [–] adrian783@lemmy.world 3 points 2 years ago (3 children) uh in any actual company you almost never push to origin master. so I think it's a joke. permalink fedilink source parent hideshow 6 child comments replies: [–] MajorHavoc@lemmy.world 7 points 2 years ago (1 child) Not with that attitude! /s permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 5 points 2 years ago Force push Fridays! permalink fedilink source parent [–] Valmond@lemmy.mindoki.com 1 point 2 years 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? permalink fedilink source parent [–] herrvogel@lemmy.world 1 point 2 years ago In most actually companies you can try push to origin master, but it'll likely get rejected by the repo's security policies. permalink fedilink source parent [–] sloppy_diffuser@sh.itjust.works 2 points 2 years ago (1 child) https://git-scm.com/docs/git-push#Documentation/git-push.txt-pushautoSetupRemote permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 1 point 2 years ago I tired that, still was having issues, weeeird. permalink fedilink source parent [–] Valmond@lemmy.mindoki.com 2 points 2 years ago (1 child) 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? permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 3 points 2 years 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. permalink fedilink source parent [–] Meowoem@sh.itjust.works 1 point 2 years ago (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 1 point 2 years ago I just meant it not auto creating a new matching named branch. permalink fedilink source parent [+] TheUncannyObserver@lemmy.dbzer0.com 1 point 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[–] MajorHavoc@lemmy.world 18 points 2 years ago (1 child) You forgot this --force flag. permalink fedilink source parent hideshow 2 child comments replies: [–] Valmond@lemmy.mindoki.com 7 points 2 years ago I'm too lazy, I use -f permalink fedilink source parent
[–] Valmond@lemmy.mindoki.com 7 points 2 years ago I'm too lazy, I use -f permalink fedilink source parent
[–] jelloeater85@lemmy.world 2 points 2 years ago (7 children) Do you always have to do origin master? I've seen it where sometimes just git push works and other times not. permalink fedilink source parent hideshow 14 child comments replies: [–] MajorHavoc@lemmy.world 4 points 2 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 3 points 2 years ago Lol why not just delete the whole project from GitHub... I mean, everyone has a copy, right?😱 permalink fedilink source parent [–] zcoyle@programming.dev 4 points 2 years 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 permalink fedilink source parent [–] adrian783@lemmy.world 3 points 2 years ago (3 children) uh in any actual company you almost never push to origin master. so I think it's a joke. permalink fedilink source parent hideshow 6 child comments replies: [–] MajorHavoc@lemmy.world 7 points 2 years ago (1 child) Not with that attitude! /s permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 5 points 2 years ago Force push Fridays! permalink fedilink source parent [–] Valmond@lemmy.mindoki.com 1 point 2 years 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? permalink fedilink source parent [–] herrvogel@lemmy.world 1 point 2 years ago In most actually companies you can try push to origin master, but it'll likely get rejected by the repo's security policies. permalink fedilink source parent [–] sloppy_diffuser@sh.itjust.works 2 points 2 years ago (1 child) https://git-scm.com/docs/git-push#Documentation/git-push.txt-pushautoSetupRemote permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 1 point 2 years ago I tired that, still was having issues, weeeird. permalink fedilink source parent [–] Valmond@lemmy.mindoki.com 2 points 2 years ago (1 child) 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? permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 3 points 2 years 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. permalink fedilink source parent [–] Meowoem@sh.itjust.works 1 point 2 years ago (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 1 point 2 years ago I just meant it not auto creating a new matching named branch. permalink fedilink source parent [+] TheUncannyObserver@lemmy.dbzer0.com 1 point 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[–] MajorHavoc@lemmy.world 4 points 2 years ago (1 child) 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. permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 3 points 2 years ago Lol why not just delete the whole project from GitHub... I mean, everyone has a copy, right?😱 permalink fedilink source parent
[–] jelloeater85@lemmy.world 3 points 2 years ago Lol why not just delete the whole project from GitHub... I mean, everyone has a copy, right?😱 permalink fedilink source parent
[–] zcoyle@programming.dev 4 points 2 years 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 permalink fedilink source parent
[–] adrian783@lemmy.world 3 points 2 years ago (3 children) uh in any actual company you almost never push to origin master. so I think it's a joke. permalink fedilink source parent hideshow 6 child comments replies: [–] MajorHavoc@lemmy.world 7 points 2 years ago (1 child) Not with that attitude! /s permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 5 points 2 years ago Force push Fridays! permalink fedilink source parent [–] Valmond@lemmy.mindoki.com 1 point 2 years 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? permalink fedilink source parent [–] herrvogel@lemmy.world 1 point 2 years ago In most actually companies you can try push to origin master, but it'll likely get rejected by the repo's security policies. permalink fedilink source parent
[–] MajorHavoc@lemmy.world 7 points 2 years ago (1 child) Not with that attitude! /s permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 5 points 2 years ago Force push Fridays! permalink fedilink source parent
[–] jelloeater85@lemmy.world 5 points 2 years ago Force push Fridays! permalink fedilink source parent
[–] Valmond@lemmy.mindoki.com 1 point 2 years 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? permalink fedilink source parent
[–] herrvogel@lemmy.world 1 point 2 years ago In most actually companies you can try push to origin master, but it'll likely get rejected by the repo's security policies. permalink fedilink source parent
[–] sloppy_diffuser@sh.itjust.works 2 points 2 years ago (1 child) https://git-scm.com/docs/git-push#Documentation/git-push.txt-pushautoSetupRemote permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 1 point 2 years ago I tired that, still was having issues, weeeird. permalink fedilink source parent
[–] jelloeater85@lemmy.world 1 point 2 years ago I tired that, still was having issues, weeeird. permalink fedilink source parent
[–] Valmond@lemmy.mindoki.com 2 points 2 years ago (1 child) 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? permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 3 points 2 years 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. permalink fedilink source parent
[–] jelloeater85@lemmy.world 3 points 2 years 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. permalink fedilink source parent
[–] Meowoem@sh.itjust.works 1 point 2 years ago (1 child) 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 permalink fedilink source parent hideshow 2 child comments replies: [–] jelloeater85@lemmy.world 1 point 2 years ago I just meant it not auto creating a new matching named branch. permalink fedilink source parent
[–] jelloeater85@lemmy.world 1 point 2 years ago I just meant it not auto creating a new matching named branch. permalink fedilink source parent
[+] TheUncannyObserver@lemmy.dbzer0.com 1 point 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent