| name | push |
| description | Commit already-staged changes and push to remote. Never stage new files. Use when changes are already staged or the user explicitly says push staged changes. |
Commit ONLY already-staged changes and push to the remote.
CRITICAL: Do NOT run git add, git add -A, git add ., or stage any files. Only commit what is already in the staging area.
Steps:
- Run
git diff --cached --stat to review what's staged
- If nothing is staged, stop and tell the user — do NOT stage files yourself
- Run
git log --oneline -5 to see recent commit message style
- Write a commit message following the repo's convention (lowercase prefix like
feat:, fix:, refactor:, etc.) — short title summarizing the WHY, not the WHAT
- Commit using a HEREDOC for the message (do NOT use
git add before committing)
- Push to the remote with
git push
- Print the resulting commit hash