Skip to content

Why use squash merging? #43

Closed Answered by spenserblack
jcbhmr asked this question in Q&A
Discussion options

You must be logged in to vote

I prefer to avoid adding commits that get undone or are partial. It's just kind of extra noise in the commit history. For example, commits that exist just for formatting, or 2 or more commits that could be described as just one. Alternative to squash merges, I could ask you to interactively rebase your branch, but that could cause even more pain to you 😆

I don't always squash-merge, and try to take things on a case-by-case basis. But the majority of PRs can be summarized as one change, so I'll squash-merge those.

If you're curious, I wrote some of my opinions on git history here: https://spenserblack.github.io/tutorials/git

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jcbhmr
Comment options

Answer selected by jcbhmr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants