Maintaining a clean commit history

Before we commit, we may want to clean the commit to make it containing only what’s relevant.

So each commit should make changes on only one purpose.

For example, it is a good habit to check the changes difference with git diff.