I always like to improve the development process with the git and a strong believer in the clean code.
Something which I always insist during my PR review is - maintain the clean git history by avoiding the unnecessary indivual commits.
Broadly, we can follow these 2 rules:
- amend/squash commits if they don't add semantic value to the PR
- Always rebase the PR before you push to the server
Below article exactly reflects my thought on this.
Other nice articles on this: