Domdhi logoDOMDHI.OS
TECH

Git Commit Conventions That Tell a Story

1,529 commits into a solo project, the log has become the most useful documentation I have -- and it's useful entirely because of a format I adopted for reasons that turned out to be wrong.

DDominic BacaLEAD ENGINEER · DOMDHI.OS2026.11.245 MIN READ
TECH// FIG.01

1,529 commits. One person. Seven and a half months.

I adopted conventional commits — feat:, fix:, chore: — because I'd seen it in repos I respected and assumed it was for changelog generation. I have never once generated a changelog from it.

It turned out to be worth doing for a completely different reason, and it took a few hundred commits to see what that reason was.

The Log Is Documentation That Can't Drift

Every other form of documentation in a repository goes stale. READMEs describe an architecture from eight months ago. Comments describe code that's since been rewritten. Design docs describe a plan that changed.

The git log cannot go stale, because it isn't describing the current state — it's describing a sequence of decisions, and those already happened. A commit from March is permanently accurate about March.

That makes it the only documentation with a guaranteed truth value, and the only one worth investing in for a solo project where nobody's reading the docs anyway.

The question then becomes: how much of why did you capture at the moment you still knew it?

What The Prefix Actually Buys

Not changelogs. Filtering.

git log --oneline --grep="^fix" | wc -l
git log --oneline --grep="^security"
git log --oneline --since="6 months ago" --grep="^feat" -- src/app/lib/finance/

That last one answers "what features landed in finance this half-year" in about a second, and there's no other artifact in the repo that answers it at all.

The real payoff is archaeology under pressure. Something breaks, you need the change that caused it, and git log --grep="^fix" -- <path> narrows a thousand commits to a handful. At 1,529 commits an unstructured log is a haystack; a prefixed one is an index.

That's it. That's the whole benefit of the prefix, and it's smaller than the discourse around conventional commits implies. It's a cheap index, not a methodology.

The Body Is Where The Value Is

Here's what I'd tell anyone adopting this: the prefix is the cheap part and the body is the part that pays.

A subject line says what changed. The code already says that — a diff is a perfectly good record of what. What the diff cannot tell you is why you chose this over the alternative you considered and rejected.

Bad:

fix: update budget calculation

Useful:

fix(budget): exclude CC-sourced bills from monthly burn

Bills paid by credit card were being counted both as the bill and
as the card payment, double-counting them in burn. Excluding at
classification rather than at the sum keeps the bill visible in the
list while removing it from the total.

Considered summing net of card payments instead — rejected because
it breaks when a card payment covers bills from two months.

Six months later, the second one answers a question I will definitely have and will definitely not remember the answer to. The rejected alternative is the most valuable line in it, because that's the thing I'd otherwise re-derive — or worse, "fix" by implementing the option I'd already ruled out.

Commit bodies are where you write down what you rejected. Nothing else in a repo has a natural place for that.

Scope Beats Prefix

If I could keep only one part of the convention it'd be the scope — the (budget) in fix(budget):.

git log --oneline --grep="(finance)"

Scopes map to the module boundaries, so the log becomes queryable by subsystem without knowing which files changed. When a module is misbehaving, its entire history is one grep away — including commits that touched files you wouldn't have thought to look in.

That's found me more than one root cause. File-path filtering misses the case where the breaking change was somewhere else entirely; scope filtering catches it because the scope reflects intent, not location.

What Doesn't Survive Contact

Honest list of what I abandoned:

Strict type vocabularies. The canonical list has a dozen types and I use five: feat, fix, refactor, docs, chore. Plus security and perf occasionally. Debating whether something is chore or build is pure overhead with zero downstream consumer.

Breaking-change markers. Meaningful for a published library. For an application nobody installs, it's ceremony.

Atomic-commit purity. Sometimes a commit does two things because they were genuinely entangled and splitting them would produce a broken intermediate state. A slightly impure commit with a clear body beats an artificial split that doesn't compile.

Automated enforcement. I ran a commit-message hook briefly and removed it. It caught typos in prefixes — the least valuable thing it could possibly catch — while doing nothing about empty bodies, which is the failure that actually matters.

The Honest Caveat

Convention quality tracks how tired I am. The commits from a good session have real bodies. The commits from 1am during a 499-commit month are fix: stuff more often than I'd like.

And an AI-assisted workflow makes this worse, not better. When output volume goes up, the temptation is to let the commit message be generated as an afterthought — an accurate summary of the diff, which is precisely the information the diff already contains. The generated message describes what. Only I know why, and only right then.

So the rule I actually try to hold: if a commit involved a decision, the body explains the decision and what I rejected. If it didn't, one line is fine.

Most commits didn't involve a decision. The ones that did are the ones I'll be reading in a year.

Write For The Person Debugging At 2am

That person is you, eight months from now, with no memory of this.

They don't need to know what changed — they've got the diff. They need to know what you were thinking, what you tried first, and why you didn't do the obvious thing.

Fifteen hundred commits in, the log is the only artifact in this repo that has never once lied to me.

That's worth thirty seconds a commit.

GET_TRANSMISSIONS

Raw signal on finance, freedom, fitness, and tech. No spam. Unsubscribe anytime.

D
Dominic Baca

Lead software engineer. I plan the work, direct AI agents to build it, and verify every result. This site is where I build in public, from money to the occasional 2am migration. About me →

FOLLOW THE LOGS →
// NEXT IN THE LOGS