CP - Commit and Push
Quick command to commit all staged changes and push to remote.
Usage
- •
/cp- Commit staged changes with auto-generated message, then push - •
/cp fix typo- Commit with custom message "fix typo", then push
What It Does
- •Checks for staged or unstaged changes
- •If unstaged changes exist, stages all changes (
git add -A) - •Generates a concise commit message based on the diff (or uses provided message)
- •Commits the changes
- •Pushes to the current branch's remote
Example
code
/cp Staged 3 files: M src/api/auth.ts M src/components/Login.tsx A src/utils/validation.ts Commit: feat(auth): add input validation to login flow Pushed to origin/main
PR Status Tracking
Claude Code v2.1.20+ shows PR review status indicators in the prompt footer. After pushing, check the status bar for PR review state.