TheDocumentation 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.
rename command changes the name of a snapshot while preserving its hash and contents.
Syntax
Parameters
name: The current snapshot name or hashnew-name: The new name for the snapshot
Examples
Rename a snapshot
Rename using hash
Rename an unnamed snapshot
You can add a name to a snapshot that was created without one:Behavior
- The hash portion of the snapshot filename remains unchanged
- The snapshot’s internal metadata is updated with the new name
- The original snapshot file is removed after the renamed version is created
- The operation is atomic - if renaming fails, the original snapshot is preserved
Technical details
The rename process:- Extracts the snapshot contents to a temporary directory
- Updates the
namefield in the snapshot’smetadata.json - Creates a new snapshot file with the new name and same hash
- Deletes the original snapshot file
Error handling
Missing parameters
Snapshot not found
Multiple matches
Name already exists
You can only rename snapshots from the current repository. The command filters snapshots by repository when searching for matches.