Command

git cat-file -t

Print the type of the named object, such as commit or tag. Read-only inspection.

Formal Syntax & Structure

git syntaxgit
git cat-file -t OBJECT

Working Example

Example Snippetgit
git cat-file -t v1.0.0
Git Reference