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?
Post
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?
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/