How to list all Git tags?

前端 未结 10 2400
囚心锁ツ
囚心锁ツ 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 17:48

    Also git show-ref is rather useful, so that you can directly associate tags with correspondent commits:

    $ git tag
    osgeolive-6.5
    v8.0
    ...
    
    $ git show-ref --tags
    e7e66977c1f34be5627a268adb4b9b3d59700e40 refs/tags/osgeolive-6.5
    8f27e65bffffd7d4b8515ce620fb485fdd78fcdf89 refs/tags/v8.0
    ...
    

提交回复
热议问题