this post was submitted on 26 Aug 2023
1133 points (98.3% liked)

Programmer Humor

32410 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] scubbo@lemmy.ml 22 points 2 years ago (9 children)

God I fucking hate merge commits.

[–] joby@programming.dev 2 points 2 years ago (6 children)

I'm guessing you don't mean commits that actually bring updates from a different branch in? I'm responsible for a bunch of commits that catch my feature branch up to main and a couple that bring my branches into main.

If we were working on the same project, what would you want to see for those? This is hosted on a private gh repo, but it's a small shop and we were working on a tight deadline for an MVP release and were not using PRs for the stuff I was working on.

The boss (co-owner of the business) is the Sr dev on the project and until recently was the only sr dev in the whole shop. I actually don't think he has experience with using git in a team context.

One of my other tasks is working on internal docs (which didn't exist before I joined the team) that would include git best practices for branching strategies and commit messages, so I'm interested in what folks who have more experience than I do would like to see as I try to nudge the team practices.

[–] reverendsteveii@lemm.ee 2 points 2 years ago (1 children)

merge commits that catch my feature branches up to main

You'd be squashing those when you merge back down into main anyway, no?

[–] scubbo@lemmy.ml 2 points 2 years ago

You'd hope so - and if one does, I have no concerns about whatever one chooses to do in the privacy of their own branch - but some people insist on directly merging to main (preserving two parallel histories), rather than squashing their change into a single commit. Savages ;)

load more comments (4 replies)
load more comments (6 replies)