+4 votes
1 view
in Devops and Agile by (15.5k points)
edited by

In my repository, I have created tags using the following commands.

git tag v1.0.0 -m 'finally a stable release'

git tag v2.0.0 -m 'oops, there was still a major bug!'

How do you list all the tags in the repository?

1 Answer

+6 votes
by (20.6k points)

You can use the following command: 

$ git tag -n

Here the -n flag displays the first line of the annotation message along with the tag, or the first commit message line if the tag is not annotated.