Search notes:

object database [git]

The database for git objects, stored under .git/objects (loose objects) and .git/objects/pack (object database [git] git-db-pack-files[pack files])

Loose objects

One file corresponds to one object.
The content of the file is not compressed and not in an other binary format: it can be viewed with cat or a text editor.

Pack files

In order to save space, git might choose to pack multiple loose objects into a pack file (along with an *.idx file.
TODO: git show-index
Apparently, git uses zlib to compress the loose object files.

See also

git prune, git fsck

Index