GitHub gives you three buttons to merge a pull request, and most teams pick one and use it for everything. Each of them leaves a very different history behind, though, and the right one depends on whatβs inside the pull request.
π Continue reading on my blog: π₯ How to merge a pull request
Top comments (3)
Wow. This is a really good strategy. Very nice tip, thanks! Squashing bad commits and commit messages sounds great as sometimes the source history for a branch is not useful anyway.
Usually my team aims for good commits like in your last point, but it doesn't always happen.
Check out this conventionalcommits.org
Thanks very much. That's already what I use ;). Highly recommended for everyone.