Gitorii Logo Gitorii

Snapshots

Full working directory backups โ€” not just staged changes.


What is a snapshot?

A snapshot copies the entire .git directory to .torii/snapshots/. Unlike git stash, it captures everything. Use it before risky operations or experiments.

Commands

# Create
$ torii snapshot create
$ torii snapshot create -n "before-refactor"

# List / restore / delete
$ torii snapshot list
$ torii snapshot restore [id]
$ torii snapshot delete [id]

# Auto-snapshot
$ torii snapshot config --enable
$ torii snapshot config --interval 30m

Stash

For quick context switching without a full snapshot.

$ torii snapshot stash
$ torii snapshot stash -n "wip-feature"
$ torii snapshot stash -u

$ torii snapshot unstash
$ torii snapshot unstash [id] -k

Undo last operation

$ torii snapshot undo

Snapshots copy the full .git directory โ€” heavy on large repos. Control frequency with torii snapshot config --interval.