How to list all Git tags?

前端 未结 10 2404
囚心锁ツ
囚心锁ツ 2020-11-28 17:40

In my repository, I have created tags using the following commands.

git tag v1.0.0 -m \'finally a stable release\'
git tag v2.0.0 -m \'oops, there was still         


        
10条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 18:11

    To list tags I prefer:

    git tag -n
    

    The -n flag displays the first line of the annotation message along with the tag, or the first commit message line if the tag is not annotated.

    You can also do git tag -n5 to show the first 5 lines of the annotation.

提交回复
热议问题