Commit
Create a commit for the current changes.
Steps
- •Run
git status(without-uall) to see untracked and modified files. - •Run
git diffandgit diff --cachedto understand staged and unstaged changes. - •Run
git log --oneline -5to see recent commit style. - •Stage the relevant files by name — avoid
git add -Aorgit add .. - •Write a commit message and commit.
If $ARGUMENTS is provided, use it as a hint for the message.
Commit message rules
- •Use the imperative mood ("Add", "Fix", "Remove", not "Added", "Fixes", "Removed").
- •Be concise: one short sentence, ideally under 50 characters.
- •Do NOT use conventional commit prefixes (no
feat:,fix:,chore:, etc.). - •Do NOT add any
Co-Authored-Byor similar trailers. - •Focus on what changed and why, not how.
- •If a second line is needed for context, keep it brief.
Examples of good messages
- •
Prevent discount code from being cleared on edit - •
Add integration test for offer code persistence - •
Remove unused legacy export helper - •
Fix thumbnail missing in upsell insert
$ARGUMENTS