DEV Community

Discussion on: Git tips for trunk-based development

Collapse
 
itayronen profile image
Itay Ronen

The author did not recommend to squash all your commits into one.
I recommend you to do use commits to split your work and make PR easier and history cleaner.
Use rebase to edit your commit history and apply it on top of master.
Then when you go to PR, the reviewer will see your (edited) commits, on top of master.