Commit Changes
Workflow
- Run
git status(never-uall) - Review all staged and unstaged changes (
git diffandgit diff --staged) - Analyze recent commit style from
git log - Stage relevant files by name (prefer explicit paths over
git add -A) - Commit with HEREDOC format
- Verify with
git status
Rules
- Match repo commit style from
git log - Do NOT push
- NEVER skip hooks (
--no-verify,--no-gpg-sign) - Do not commit secrets (
.env, credentials, keys) - If pre-commit hook fails: fix issues, re-stage, create a NEW commit (never
--amendunless explicitly requested and safe) - If there is nothing to commit, say so and stop — do not create an empty commit