Git Commit
Create a git commit for the current changes.
Commit Message Format
Use conventional commit style:
<type>: <short description>
<optional body with more details>
Co-Authored-By: Claude <noreply@anthropic.com>
Types
feat: New featurefix: Bug fixrefactor: Code refactoringstyle: Formatting, missing semicolons, etc.docs: Documentation changestest: Adding or updating testschore: Maintenance tasks
Examples
feat: add warehouse status recalculation endpoint
fix: correct working day calculation for early morning hours
refactor: extract invoice creation logic to service class
test: add feature tests for OrderController
Steps
- Run
git statusto see all changes - Run
git diffto review staged and unstaged changes - Run
git log --oneline -5to see recent commit style - Stage relevant files with
git add <files>(prefer specific files overgit add .) - Create commit with descriptive message using HEREDOC format:
git commit -m "$(cat <<'EOF'
<type>: <description>
<optional details>
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
- Run
git statusto verify commit succeeded
Important Notes
- Do NOT commit
.envor other sensitive files - Do NOT use
--amendunless explicitly requested (creates new commits) - Do NOT use
--no-verifyunless explicitly requested - Do NOT push unless explicitly requested
- If pre-commit hooks fail, fix issues and create NEW commit
User's hint for this commit
$ARGUMENTS
Scan to join WeChat group