Clean up a messy Git branch
It's very desired that every commit in the branch is organized well. One commit changes only one logical part. It shouldn't contain irrevant changes, such as one for UI and another for DB. Such changes must be separated into different commits.
- It makes review easier.
- It would help you dividing the big PR to a few logical PRs.
- It makes easier to remove one logical change.