Information for a specific tag

1

I'm looking for information in the tags of a repository with the following command that returns the information depending on the parameter I pass in the --format flag.

git tag --format="%(refname) %(taggerdate)"

The issue is that this command returns information for all tags present, however what I need is a specific tag.

Is there any command that I pass as parameter the name of the tag and have the information of the tag as a response?

Ex: git tag $nomeDaTag --format="%(taggerdate)"

    
asked by anonymous 27.11.2018 / 17:28

1 answer

1

You can use the command grep after the output of the command to filter by branch name. Here's an example to filter through the branch named v1.0.1 :

$ git tag --format="%(refname) %(taggerdate)" | grep v1.0.1

Or, using%% of git itself , you too you can do this filter:

$ git tag --format="%(refname) %(taggerdate)" --list 'v1.0.1'
    
14.12.2018 / 19:20