Small Commits For The Win

Craig Eddy
Aug 9, 2021

It’s so easy to leave a bunch of modified files in your local repo. It’s also lazy and leaves you vulnerable to being unable to revert mistakes.

Today I experienced the value of small commits. About a week ago, while walking through some feature changes with the my dev team, it seemed like I had implemented something that wasn’t necessary.

My local repo was clean (no uncommitted changes), so I made the code changes needed and performed a commit.

Over the weekend I noodled this project a bit more and realized that I had modified these files hastily. Upon further reflection, I knew that I need to revert these changes and reintroduce this feature.

Thanks to Git (and GitKraken) putting the feature back was as simple as selecting the commit and reverting it.

--

--

Craig Eddy

Entrepreneur, agile coach, and software artisan. We believe that every one, every where, is filled with potential.