Is there something like "git show tags"?
List Git Tags. When you clone a repository, all the tags associated with the repository will be pulled down.
Find Latest Git Tag Available In order to find the latest Git tag available on your repository, you have to use the “git describe” command with the “–tags” option. This way, you will be presented with the tag that is associated with the latest commit of your current checked out branch.
Listing the available tags in Git is straightforward. Just type git tag (with optional -l or --list ).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With