At times, I find myself committing too often because I am developing and testing at the same time, while being convinced that this time, it should work.
Git rebasing/squashing features allows you to merge multiple commit together, which keeps your Git log clean.
See this article for more information on how to squash commits.
Happy squashing :-)
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.