Skip to content

MarkJamesHoward/git-unpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-unpack

CLI tool to unpack Git pack files to loose objects.

npm version License: MIT

Installation

npm install -g git-unpack

Or run directly without installing:

npx git-unpack

Usage

# 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

Options

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

About

CLI tool to unpack Git pack files to loose objects

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors