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.
Installation
Install git-snapshot using a one-line curl command, or clone and build from source.Quick install
The fastest way to get started:Run the install script
Execute the one-line installer:This installs git-snapshot to
/usr/local/bin by default.Verify installation
Check that git-snapshot is available:You should see the help output with all available commands.
Custom installation directory
If you want to install to a different directory (e.g.,~/.local/bin):
The installer will automatically detect if the install directory is not in your PATH and provide instructions.
Install from source
For development or if you prefer building locally:Run the local installer
Requirements
git-snapshot is a Bash script with minimal dependencies:- Bash (version 4.0 or later)
- Git (any recent version)
- curl or wget (for installation only)
- tar (for creating and extracting snapshots)
- jq (optional, for better JSON handling)
Most Unix-like systems (Linux, macOS) have these tools pre-installed.
Updating git-snapshot
To update to the latest version, simply re-run the installer:Uninstallation
To remove git-snapshot:Troubleshooting
Permission denied during installation
If you see permission errors:sudo. Enter your password when prompted.
Alternatively, install to a user-writable directory:
Command not found after installation
If you getcommand not found: git-snapshot:
-
Check if the install directory is in your PATH:
- If the install directory is missing, add it to your shell configuration (see “Add to PATH” above)
-
Reload your shell:
curl vs wget
The installer works with both curl and wget:Next steps
Quick start
Learn how to create and restore snapshots
Introduction
Understand when to use git-snapshot vs git stash