One Commit. One Change. 🔊

Why a small atomic commit is easier to work with

Image for post
Image for post
A couple, exchanging alliances in a commitment
Listen to the audio version!

In Git, if you replay all committed changes since the beginning and in the same chronological order, you will get the exact same result.

An atomic commit should be able to be reverted or applied without side effects.

An atomic change is a piece of functionality that can be replayed over and over again against a specific set of premises.

If a commit does more than one thing, it might be impossible to understand in the future why those lines in the system were changed

I believe ideas should be open/free. This is a non-profit initiative to write about challenging stuff you won’t find anywhere else. ~7 min post every few weeks.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store