Git Commit AI
Generate meaningful commit messages from git diff
Usage
git diff --staged
Analyze the diff and generate a commit message following conventional commits:
feat:for new featuresfix:for bug fixesdocs:for documentationrefactor:for code refactoringtest:for testschore:for maintenance
Example Output
feat(auth): add OAuth2 login support
- Implement Google OAuth2 flow
- Add user session management
- Store refresh tokens securely
Rules
- First line: type(scope): short description (max 72 chars)
- Body: bullet points explaining why, not what
- Be specific, not generic
- No "Update file" or "Fix bug" messages
