| Three options? The best alternative to squash-merge is to freely rebase before you merge. Or for that matter squash if you just end up with one commit (because rebase subsumes squash). 1. You get rid of WIP commits, typo fix commits, all kinds of transient changes (for review and so on) 2. You keep the substantive ones 3. All changes are logically separated I don’t see where you cover this option. > Also setting the commit message in main to the `{title} (#{prNum})\n\n{prDescription}` format preserves all the good context from your PR and lets you get back to it if you need. Again. It is ironic that people are so comfortable with dumping the history in a webapp when you are working with a version control system. I am fine with a lot of the history being on GitHub or whatever other webapp. The review history, that is. But I’m not comfortable with leaving the history of the pre-squashed commits on GitHub if those pre-squashed commits were useful for the long-term history. |
And if the PR author deems their commits insignificant, they can feel free to make one PR and they squash & merge.