开发者

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

This question already has answers here: 开发者_如何学C How to list all Git tags? (11 answers) Closed 7 years ago.

Is there something like "git show tags"?


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.


Use:

git ls-remote --tags YOUR_REPOSITORY_NAME
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜