A perfect commit:
git add -p — stage only related changes
- Each commit = ONE logical change
- Message format:
type(scope): description
feat(auth): add OAuth2
fix(api): handle null response
Conventional Commits enable auto changelogs.
git diff --staged before EVERY commit.