Git Tag list, display commit sha1 hashes

后端 未结 8 1120
无人共我
无人共我 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: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.

提交回复
热议问题