Squash merge: what is it, and what's the trade-off?

AdvancedConceptGit
Answer

It combines all PR commits into one commit on main. You get a clean history and easy reverts, but you lose the individual commits, and branches built on the PR branch need a rebase.

All Real-World Interview questions Roadmap: Interview readiness

More on Git