git-unpack
v1.0.2
Published
CLI tool to unpack Git pack files to loose objects
Maintainers
Readme
git-unpack
CLI tool to unpack Git pack files to loose objects.
Installation
npm install -g git-unpackUsage
# 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 -vOptions
| Option | Description |
|--------|-------------|
| -d, --delete | Delete pack files after unpacking |
| -v, --verbose | Show each object as it's unpacked |
| -h, --help | Show help message |
What does it do?
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.
Documentation
Full documentation available at https://markjameshoward.github.io/git-unpack
License
MIT
