Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/mubshrx/git-snapshot/llms.txt

Use this file to discover all available pages before exploring further.

git-snapshot provides a simple interface for managing working directory snapshots. Below is a summary of all available commands.

Commands

create

Create a new snapshot of your current working directory state.
git-snapshot [name]
git-snapshot create [name]
Saves staged changes, unstaged changes, and untracked files into a single snapshot. Learn more about create →

list

List all snapshots for the current repository.
git-snapshot list [--all]
By default, shows only snapshots for the current repository. Use --all to see snapshots from all repositories. Learn more about list →

show

Display detailed information about a specific snapshot.
git-snapshot show <name>
Shows metadata and lists all files stored in the snapshot. Learn more about show →

restore

Restore a snapshot to your working directory.
git-snapshot restore <name> [options]
Supports selective restore with --staged-only, --unstaged-only, or --untracked-only flags. Learn more about restore →

delete

Delete one or more snapshots.
git-snapshot delete <name> [name2] ...
Permanently removes snapshots. Prompts for confirmation before deletion. Learn more about delete →

prune

Delete all snapshots for the current repository.
git-snapshot prune
Removes all snapshots associated with the current repository. Prompts for confirmation before deletion. Learn more about prune →

rename

Rename an existing snapshot.
git-snapshot rename <name> <new-name>
Changes the name of a snapshot while preserving its hash identifier. Learn more about rename →

help

Display help information with all available commands.
git-snapshot help
git-snapshot --help
git-snapshot -h
Shows usage information, command syntax, and examples.

Quick reference

CommandDescription
create [name]Create a snapshot
list [--all]List snapshots
show <name>Show snapshot details
restore <name>Restore a snapshot
delete <name>...Delete snapshot(s)
pruneDelete all snapshots for current repo
rename <name> <new>Rename a snapshot
helpDisplay help information

Build docs developers (and LLMs) love