Checkpoint
Save current work in progress to remote. Creates a commit and pushes but does not create a PR. This is useful for backing up work, switching contexts, or sharing progress before a formal review.
Workflow
- Verify branch state on a feature branch, not main
- Check for changes to confirm there is something to commit
- Commit and push to remote
Step 1: Verify Branch State
Follow Branch Verification.
If CURRENT_BRANCH equals BASE_BRANCH, stop with error: "Cannot checkpoint on default branch. Create a feature branch first."
Step 2: Check for Changes
git status --porcelain
If output is empty, stop: "No changes to checkpoint. Working directory is clean."
Show the user what will be committed:
git diff --stat
Step 3: Commit and Push
Follow Commit and Push.
Output
Checkpoint saved to <branch-name>
Commit: <short-hash> <message>