git cat-file
Use to view the type of an object, its size, and its content.
It is often used with the -p
flag (“pretty printing”)
git cat-file -p <object hash>
Without it, you need to specify the type of an object like the following:
git cat-file tree <object hash>
Other useful flags
Show types
git cat-file -t <object hash>