Git Tag list, display commit sha1 hashes

后端 未结 8 1105
无人共我
无人共我 2020-12-12 17:56

so the git tag command lists the current git tags

tag1
tag2

git tag -n prints tag\'s message

tag1         


        
相关标签:
8条回答
  • 2020-12-12 18:30

    The tags have to be signed and/or messaged. Lightweight tags don't have SHA1 objects and are just refs. Otherwise try git show.

    0 讨论(0)
  • 2020-12-12 18:32
     git for-each-ref --format='%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end) %(refname)' refs/tags
    

    This gives a list of all commits for tags. Annotated tags are dereferenced. Send thanks here.

    0 讨论(0)
提交回复
热议问题