Commit
Workflow
- •
Check for sensitive files: If staged files look like secrets (.env, credentials, keys), warn and stop.
- •
Craft commit message:
- •Format:
type(scope): description - •Types: feat, fix, refactor, docs, test, chore, perf
- •Match style of recent commits in repo
- •Format:
- •
Stage and commit in single operation.
Commands
bash
git status git diff HEAD git branch --show-current git log --oneline -5