CC - History & Checkpoints

CC - History & Checkpoints

While working with an agent, you may find you have gone down the wrong path while trying to find a solution. By using Claude Codes rewind feature, you can undo file changes and remove messages from context.

[escape] + [escape] or /rewind - Tapping escape twice activates rewind, which shows a list of your recent messages. Selecting one will take you back to that point

image-20260430-170348.png

✏️ Undo a change

In the previous section, we asked Claude to make a small change to the new feature we added to the Home page.

  • Use /rewind in the terminal to roll it back

 

Git - Claude can handle making commits with detailed messages. If you make commits as you complete major milestones, you can roll back to these prior states.

git log --oneline # see recent commits git checkout <hash> # go back to that state

Be aware that a git rollback can create some confusing results because Claude’s context will say it changed files, but those file changes are no longer there. You can instead tell Claude to do the rollback to a previous git commit hash so the rollback is in the context.


Next: CC - Model Context Protocol (MCP)