Staged diff: !git diff --staged
Unstaged diff: !git diff
Status: !git status --short
Commit the current changes directly on the current branch (no branches, no PRs).
Steps:
- If "Staged diff" is empty, run
git addon the relevant changed/new files shown in Status, then usegit diff --stagedas the diff to analyze. - Read the diff and write a concise conventional-commit message:
type(scope): summary, using typefix,feat,refactor,chore, ordocsas fits. Keep the summary under ~72 chars, imperative mood, no period. - If an argument was given ($ARGUMENTS), use it to guide or override the generated message (e.g. as the summary text or extra context) rather than ignoring it.
- Run
git commit -m "<message>"with the final message. - Report the commit message and hash used.