DEV Community

Discussion on: A quick guide to squashing Git commits

Collapse
 
simbo1905 profile image
Simon Massey

If folks are using GitHub they can use squash-and-merge to merge a PR to get the “git merge —squash” behaviour. Then the PR lands as a single commit with two parents. On the branch you merged into the git log shoes a single clean commit. In the PR brach the git log shows all the original commits which can be noisy such as making minor changes due to code review.