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.
Comment on Manager: This task only takes 30 minutes. Why did it take you the whole day?
jelloeater85@lemmy.world 11 months agoDo you always have to do origin master? I’ve seen it where sometimes just git push works and other times not.
MajorHavoc@lemmy.world 11 months ago
jelloeater85@lemmy.world 11 months ago
Lol why not just delete the whole project from GitHub… I mean, everyone has a copy, right?😱
zcoyle@programming.dev 11 months ago
where it Just Works, the branch is set up to track a remote branch
TheUncannyObserver@lemmy.dbzer0.com 11 months 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.
sloppy_diffuser@sh.itjust.works 11 months ago
jelloeater85@lemmy.world 11 months ago
I tired that, still was having issues, weeeird.
Valmond@lemmy.mindoki.com 11 months 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?
jelloeater85@lemmy.world 11 months 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 11 months 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
jelloeater85@lemmy.world 11 months ago
I just meant it not auto creating a new matching named branch.
adrian783@lemmy.world 11 months ago
uh in any actual company you almost never push to origin master. so I think it’s a joke.
MajorHavoc@lemmy.world 11 months ago
Not with that attitude! /s
jelloeater85@lemmy.world 11 months ago
Force push Fridays!
herrvogel@lemmy.world 11 months 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 11 months ago
Depends on the configuration right? I mean you don’t push to master ofc.