To avoid committing and pushing white spaces, you can do: `git diff --check` before committing. This will prompt you for this type changes.