Create a commit with an auto-generated message.
Steps
- •Run
git statusto see changes - •Run
git diffto understand changes - •Generate descriptive commit message
- •Stage appropriate files
- •Create commit
Commands
bash
git status git diff --staged git diff git add [specific files] git commit -m "message"
Commit Message Format
code
<type>: <short description> <optional body> Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Types:
- •feat: New feature
- •fix: Bug fix
- •docs: Documentation
- •refactor: Code restructuring
- •test: Adding tests
- •chore: Maintenance
Rules
- •Stage specific files, not
git add -A - •Never commit .env or secrets
- •Use descriptive messages
- •Add co-author attribution