Synopsis
git cat-file (-t | -s | -p | -e) <object>
git cat-file --batch
git cat-file --batch-check
Description
The git cat-file command is a plumbing tool that reads raw Git objects from the object database. It can print an object's type (blob, tree, commit, tag), size, and content. The --batch mode lets scripts feed many object names on stdin and receive structured output, which is far faster than invoking cat-file per object.