DEV Community

Discussion on: Git: Are you an over-committer? Squash those commits!

Collapse
 
cipharius profile image
Valts Liepiņš

Merge request oriented workflow even allows you to push the unorderly commits to remote repository, on a seperate MR dedicated branch. That means your commits will be backed up on remote repository, which can still be safely rebased, as long as you have agreement with coworkers not to work on other people branches. Once the MR is ready to be merged, it can be squashed and remain as a clean, single commit on the main branch!