Back

Explore Courses Blog Tutorials Interview Questions
+5 votes
2 views
in DevOps and Agile by (19.4k 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 (27.5k points)
edited by

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.

For more commands like this please go through the following tutorial that will help you understand the git

 

Browse Categories

...