<p>Another reason I don't like squashing commits within pull/merge request is losing detail within the commit messages.</p>
<p>As someone who usually writes detailed commit messages that explain why the change is being made, any gotchas or alternative approaches that were tried, etc, I want that information to be retained.</p>
<p>Previously, when working on a team and doing merge/pull requests, when merging a feature or release branch, either the tool or reviewer would delete all the messages from the squashed commits.</p>
<p>The time I spent writing the messages was wasted, and the information was lost.</p>
<p>I'd rather <a href="/daily/2024/05/10/optimise-for-revertability">keep the original commits intact</a> but, if you need to squash commits, please don't remove the previous messages as they could be useful in the future.</p>
<p>People can see the changes by viewing the commits, but the information within the commit messages are valuable, too.</p>
format:full_html
processed:|
<p>Another reason I don't like squashing commits within pull/merge request is losing detail within the commit messages.</p>
<p>As someone who usually writes detailed commit messages that explain why the change is being made, any gotchas or alternative approaches that were tried, etc, I want that information to be retained.</p>
<p>Previously, when working on a team and doing merge/pull requests, when merging a feature or release branch, either the tool or reviewer would delete all the messages from the squashed commits.</p>
<p>The time I spent writing the messages was wasted, and the information was lost.</p>
<p>I'd rather <a href="/daily/2024/05/10/optimise-for-revertability">keep the original commits intact</a> but, if you need to squash commits, please don't remove the previous messages as they could be useful in the future.</p>