Post #479211
2026-02-26 07:59 UTC
Do you sqash commits when you merge to main?
We always kept the full history but i think it is a bit messy for an overview how main changed. Especially if i want to know what changed between two MRs/PRs.
What are your arguments to do it like you do?
#development #git #python #java #javascript #go #rust
Replies (1)
-
@graves501@fosstodon.org 2026-02-26 08:08
@satobi@burningboard.net IMO it only gets messy if the individual commits/commit messages are messy. Writing meaningful commit messages takes some discipline. So no, I don't squash since I see it as part of the documentation. The "conventional commits" approach definitely helps: https://www.conventionalcommits.org/