There are (too) many questions regarding how to squash commits for git and other DVCS, such as:
- Squash my last X commits together using Git
- How to squash all git commits into one?
- Joining various commits in one without merging
- Is there a way to squash a number of commits non-interactively?
- Can I squash commits in Mercurial?
- With Mercurial, how can I "compress" a series of changesets into one before pushing?
- ...
My question is, do I want to squash commits? Should I keep the detailed sequence of commits showing how a feature was developed, or should I rather squash them into one once the feature is finished, to keep the history cleaner?