Jacob Tomlinson 7/26/2022

Don't prematurely squash/rebase and force push your PRs

Read Original

This article discusses a common frustration in GitHub code review: when a PR is squashed/rebased and force-pushed, reviewers lose the ability to see incremental changes. It explains why this is an anti-pattern for reviewers and advocates for using GitHub's 'Squash and merge' feature at the *end* of the process. This keeps the main branch history clean while allowing PRs to evolve messily, making delta reviews easier and improving the workflow for both contributors and reviewers.

Don't prematurely squash/rebase and force push your PRs

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week