Lightweight, local checkpoints for a git repo. It snapshots tracked + untracked files (excluding ignored files) into .checkpoints/, and lets you (or your AI Agent) restore later.
- Go >= 1.25.6 in $PATH
go install github.com/LukeTarr/checkpoint@latestRun commands from inside a git repo.
#create checkpoint
checkpoint push [name]
#restore from checkpoint
checkpoint pop [name]
#show current repo checkpoints
checkpoint list
#remove all current repo checkpoints
checkpoint nuke
#outputs shell script for completions (pipe into shell file in completions directory to get tab auto complete when invoking)
checkpoint completiongit clone https://github.com/LukeTarr/checkpoint.git
cd checkpoint
#will output a ./checkpoint executable file
go build- Requires a
.gitdirectory. - Ignores files matched by git ignore rules.
.checkpointsis never included in snapshots.