Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Is there something like "git show tags"?

like image 831
marko Avatar asked Jul 12 '10 18:07

marko


People also ask

Does git clone get all tags?

List Git Tags. When you clone a repository, all the tags associated with the repository will be pulled down.

How do I find my git repository tags?

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.

Which command will list out all tags in current branch in git?

Listing the available tags in Git is straightforward. Just type git tag (with optional -l or --list ).


2 Answers

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.

like image 52
jA_cOp Avatar answered Sep 25 '22 01:09

jA_cOp


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.

like image 21
VonC Avatar answered Sep 23 '22 01:09

VonC