Generate a commit message for staged changes.
- Run
git diff --stagedto see changes - Write a commit m essage that explains WHY, not just WHAT
():
- feat: New feature
- fix: Bug fix
- refactor: Code change (not fix or feature)
- test: Tests
- docs: Documentation
- chore: Maintenance
- Subject: max 50 chars, imperative mood
- Body: explain WHY this change was needed
- Reference issues if applicable
feat(auth): add password reset flow
Users were locked out permanently if they forgot their password. This adds a reset flow using email verification tokens.
Closes #234
- Future you will search git blame at 2am
- A good commit message is a gift to yourself
- If you can't summarize it, the change might be too big