+1 to squash merge for merging from feature branches to master

On Fri, Jan 14, 2022 at 6:25 AM CalvinKirs <[email protected]> wrote:

> Hi guys,
>
>
> Currently, we have three ways to merge codes, we mostly use create a
> merge, squash merge.
>
> I suggest we use Squash Merge.
>
> As you work on a feature branch, you often create small, self-contained
> commits. These small commits help describe the process of building a
> feature but can clutter your Git history after the feature is finished. As
> you finish features, you can combine these commits and ensure a cleaner
> merge history in your Git repository by using the squash and merge strategy.
>
> And Create a Merge can cause our Git log to get messy and even lose some
> of our git log (override).
>
> If we encounter a large PR, we should split it up instead of creating a
> large PR (which will result in a huge review effort, and if there are too
> many issues, it will also result in a delayed merge of the PR, or even
> frequent code conflicts), and then use Create a merge to merge it.
>
> We can also see that most Apache projects will force the Squash Merge
> approach, so I hope the community can reach a consensus, and if you have
> different opinions, feel free to discuss.
>
>
> Best wishes!
> Calvin Kirs
>
>

Reply via email to