How to Check Who Created Git Tag?

Issue

It is clear that each commit in a Git repository is associated with an author, but is it also possible to identify the user who created a specific tag?

Solution

Yes, it’s possible to identify the user who created a specific tag in Git if it is an annotated tag. You can use the command git show followed by the tag name to display the tag information, including the tagger’s name and email address.

Command Syntax

$ git show <tag_name>

Example

$ git show v1.0.1

The output will look like this:

tag v1.0.1
Tagger: Harper Johnson <[email protected]>
Date:   Tue Jun 27 12:19:12 2023 -0700

release version 1.0.1

commit 8fb7281b88b00e28dfc9295e84ab68a5782c259d
Author: Scarlett Davis <[email protected]>
Date:   Mon Jun 16 21:52:11 2023 -0700

    Change version number

This will show information about the tag, including the tagger’s name and email address, along with the date and time the tag was created.

If the tag that needs to be checked is a lightweight tag, running the git show command will only return the commit information, excluding the tagger’s information.

tag v1.0.1
commit 8fb7281b88b00e28dfc9295e84ab68a5782c259d
Author: Scarlett Davis <[email protected]>
Date:   Mon Jun 16 21:52:11 2023 -0700

    Change version number

Conclusion

You can only check the information about who created a specific tag in Git if that tag was created as an annotated tag.