How to see all tags in a git repository in command line

GitVersion Control

Git Problem Overview


Is there something like "git show tags"?

Git Solutions


Solution 1 - Git

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.

Solution 2 - Git

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.

Solution 3 - Git

Use:

git ls-remote --tags YOUR_REPOSITORY_NAME

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionmarkoView Question on Stackoverflow
Solution 1 - GitjA_cOpView Answer on Stackoverflow
Solution 2 - GitVonCView Answer on Stackoverflow
Solution 3 - GitSunil DiasView Answer on Stackoverflow