What do you write in Git commit messages?
I'm curious what people write for those genuinely ambiguous changes that aren't feat or fix. Today I wrote "minor edits" and felt a bit dead inside.
3 answers
If your team creates just one commit convention document, half of these worries disappear. It's common practice to define only feat/fix/chore/docs/refactor/test/style and lump ambiguous ones under chore. We use a rule like 'chore: minor fixes and cleanup' where you add the details after. But honestly, if you're working alone without a team, it doesn't matter what you use. As long as you understand it later.
In that case, I just use chore. But if it’s really ambiguous, “minor fixes” isn’t bad either lol When you look at the git log later, that’s the most honest.
Hold on—I don’t get why “minor fixes” gives you a reality check. Commit messages are meant to tell future me (or teammates) what was done, so if it’s ambiguous, wouldn’t it be better to just write specifically what you fixed? “Minor fixes” honestly carries zero information. For example, something like “fix: fix broken alignment of the login button.” Of course, if there really are multiple trivial changes, bundling them under chore is also an option. But I think it’d be good to first sort out whether the reality check comes from what others say or from not knowing what you should write.