r/ProgrammerHumor • • Oct 21 '22

Meme Dropbox, the new git.

Post image
60.7k Upvotes

1.8k comments sorted by

View all comments

Show parent comments

28

u/killeronthecorner Oct 21 '22

These are valid ways of using git. Not the best ways, but valid ways.

Git is a toolkit and some people lost sight of this. The fact that it is good at merging code is almost irrelevant to the fact it's good at maintaining snapshots of file structures, and so on.

If you're getting the benefits of any of these use cases, it's valid usage for sure. We all gotta start somewhere and where you started was the same as most of us: cloning and pushing to master!

Re-cloning is just pulling with extra steps. I don't see this as wrong, just different and with some redundant steps.

17

u/Triffinator Oct 21 '22

I was more irked that his workflow included pushing direct to master with no care for the process we had agreed as a team to follow. I could take or leave the rest of his discipline with git.

5

u/frezik Oct 21 '22

I'll admit that in projects where I'm the only developer, I tend to work out of master almost all the time. But when working as a team, being disciplined with branches is essential.

4

u/enfier Oct 21 '22 edited Oct 21 '22

You could have removed his permission from the branch and forced him to do a pull request to merge.

Or... just use the branches in a different way. If he's supposed to push to dev, make master the new dev and create a new branch to represent master.

3

u/killeronthecorner Oct 21 '22

Fair play, that's bad etiquette in a group setting. Hopefully he learned from the mistakes!