Commit all outstanding changes and push to the current branch.
- Run
git status(never use-uall) andgit diffto see all changes, andgit log --oneline -5to see recent commit style. - List all files that will be staged (modified, added, deleted, untracked) and the proposed commit message. Ask the user for confirmation using AskUserQuestion before proceeding. Do not stage files that contain secrets.
- Once confirmed, stage the approved files explicitly by name (prefer naming files explicitly over
git add -A). - Write the commit message as confirmed. End with
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>. - Push to the current branch with
git push.
微信扫一扫