CLI tool to unpack Git pack files to loose objects.
npm install -g git-unpackOr run directly without installing:
npx git-unpack# Unpack in current repository
git-unpack
# Unpack a specific repository
git-unpack /path/to/repo
# Unpack and delete pack files
git-unpack -d
# Verbose output
git-unpack -v| Option | Description |
|---|---|
-d, --delete |
Delete pack files after unpacking |
-v, --verbose |
Show each object as it's unpacked |
-h, --help |
Show help message |
Git stores objects in two formats:
- Loose objects: Individual files in
.git/objects/ - Pack files: Compressed bundles in
.git/objects/pack/
This tool converts pack files back to loose objects, useful for debugging, recovery, or understanding Git internals.
Full documentation available at https://markjameshoward.github.io/git-unpack
MIT