Get the [t]ype (blob, tree, commit, tag) of a given Git object

git cat-file

  • Provide content or type and size information for Git repository objects.
    More information: <https://git-scm.com/docs/git-cat-file>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

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

click the source code to copy install git cat-file on any operating system with command-not-found.com