A checkpoint is not a Git commit
A checkpoint saves a point inside a Claude session, while `/rewind` returns work to an earlier dialogue state or session branch. It is not a universal equivalent of a Git commit.
A Git commit, push, database migration, external service call, or deployment cannot be undone through `/rewind`. Such effects need a separate rollback procedure.
| Tool | What it controls |
|---|---|
Checkpoint / /rewind | Claude’s work state in the current session |
| Git commit | Saved changes and repository history |
| Git revert | A new commit that cancels an already published commit |
| External-action rollback | Migrations, deployments, data, and service calls through separate procedures |
Prepare a checkpoint
- Check that the baseline tests pass.
- Record the baseline in Git or by another reproducible method.
- Describe the current milestone and its scope.
- Make sure the list of allowed files is clear.
- Save a checkpoint before a risky experiment.
/rewind
/help
# Check the current command syntax in your version.What to do after an unwanted direction
- Stop further edits.
- Check whether a commit or external effect was created.
- Assess the diff and file state.
- Run
/rewindif the problem belongs to session work. - Narrow the prompt and ask for a minimal plan first.
- Recheck the files and tests before continuing.
Limits of `/rewind`
- Manual changes in an IDE may not belong to the Claude session state.
- A Git commit requires
git revertor another Git procedure. - A database migration requires a reverse migration or restoration from a backup.
- An external request or deployment is not automatically canceled.
- A new session may be better if the problem is already in overloaded context.
After a rewind
A checkpoint is useful together with a Git baseline, small steps, diff review, and tests. Do not treat a rewind as permission to continue without analyzing the cause of the failed iteration.
Canonical lesson source · JavaRush
Open JavaRush material