News for hackers. Stuff that matters.
Re:Git: Please Stop Squash Merging by kstenerud on Sunday June 30, 2024 @10:54PM (#40842156)
Yup, agreed.

I've worked in orgs that use long lived branches and short lived branches... And short lived branches are by far less stressful to deal with if you can do it, precisely because of merge conflicts.

Reality is never going to match your desire. Things are going to get messy, and so you end up with squashable commits among your commits that shouldn't be squashed. The branch you're merging should match your intent for atomic changes to the code that can be easily reasoned about when rebasing, merging, and bisecting.

You write to history once, but you read from it many times. Therefore, optimize for reads.

There are no comments on this comment yet.