link
git/cat-file

Show Object

Provide content or type and size information for repository objects

git
cat
file

Command

git cat-file

Examples

Show object type

git cat-file -t abc123

Pretty-print object contents

git cat-file -p abc123