+6 votes
1 view
in Devops and Agile by (20k 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

+7 votes
by (28.4k 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

 

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...