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!'
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?
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.