Hacker News new | ask | show | jobs
by lsiebert 3752 days ago
Only once so far: https://github.com/git/git/commit/75d2e5a7b038debee406805c9e... is my git commit ;-)

But seriously, I commit regularly, and rebase locally before pushing, whenever possible.

It's not really about how often you commit, it's about documenting that commit as a single unit of work so looking at it it's clear what you did, and why. This often requires planning ahead of time, and even possibly creating a separate branch just for off topic commits that you think of while working on the same file.

I'm not perfect though, it's okay not to be perfect.