git cat-file

Provide content or type and size information for Git repository objects. More information: https://git-scm.com/docs/git-cat-file.

git cat-file -s HEAD

git cat-file -t {{8c442dc3}}

git cat-file -p {{HEAD~2}}