How to see all tags in a git repository in command line [duplicate]

git tag to list tags used in the repo.

git tag -l if you use the -l option you can pass a search pattern to filter out tags.


git tag -l
git tag

-l <pattern>

List tags with names that match the given pattern (or all if no pattern is given).
Typing "git tag" without arguments, also lists all tags

See also GitHub tagging.
And I mentioned in "How to sort git tags by version string order of form rc-X.Y.Z.W?" to sort order used for listing tags.