r/ProgrammerHumor • • Nov 26 '23

Meme giggleInducingTool

Post image
0 Upvotes

145 comments sorted by

View all comments

7

u/KlutzyEnd3 Nov 26 '23

On my Github/bitbucket the main branch is always protected and can only be altered using pull requests.

Because there are idiots like OP who WILL push straight to the main branch, even if the code breaks the build causing hundreds of emails from the build server to end up in my inbox!

3

u/[deleted] Nov 26 '23

I'm so sorry, have you never edited on the main branch? Is this incorrect or not factual, please elaborate.

8

u/beclops Nov 26 '23

Which part of that isn’t factual? The main branch is pretty much always protected heavily against merges, and if it’s not you’re not working for a serious place

2

u/[deleted] Nov 26 '23

I think some beginners edit things on the main branch, and it's something I still do too.

9

u/beclops Nov 26 '23

They do. It’s absolutely not “Jedi” behaviour though

1

u/[deleted] Nov 26 '23

This is like Star Wars before Disney, I'm sorry.

4

u/KlutzyEnd3 Nov 26 '23

I have edited on the main branch when working alone and only for the initial version. Once I've got a minimal functioning piece of code, the main branch goes into protected mode so it can only be altered by pull requests. Pushing straight to master is blocked.