December v0.4.19

Git Checkpoints

Learn how December saves your files at each turn so you can undo a change with one command.

This page tells you how December saves your files at each turn and how you undo a change.

Automatic Restore Points

When you send a prompt, December saves a snapshot of your project files before it starts work. Each snapshot belongs to one turn.

  • Separate history: December keeps snapshots in a separate git repository in .december/snapshots. Your own git history and branches do not change.
  • Ignored files stay out: Snapshots skip the files in your .gitignore. They also skip node_modules, dist, .git, and .december.
  • Review changes: Type /diff to see the git diff of your workspace.
  • Undo the last turn: Type /undo to revert the files and the conversation from the last turn.
  • Go back further: Type /rewind to pick any earlier turn and restore the files and the conversation to that point.
Checkpoint 0
Before the turn

December saves your files when you send a prompt.

Checkpoint 1
Files changed

December edits files. Type /diff to see the changes.

Checkpoint 2
Next turn

Your next prompt saves the new state.

Change went wrong? Type /undo to go back one turn, or /rewind to pick a turn.

Rewind from the terminal

You can also restore a turn outside a session. To list the saved turns, run:

december rewind list

To restore a turn, add its number. With no number, December restores the latest snapshot.

december rewind 3