Get the time and date of git tags

后端 未结 7 1297
逝去的感伤
逝去的感伤 2021-01-30 15:37

I have a project that is using git and have tagged all the releases with a tag.

$ git tag
v1.0.0
v1.0.1
v1.0.2
v1.0.3
v1.1.0

My goal is to list

7条回答
  •  迷失自我
    2021-01-30 16:23

    There is no simple option in git tag command to do this. I found most convenient to run

    git log --decorate=full
    

    to list all commits including tags if there are some. For listing only commits that are tagged use

    git log --decorate=full --simplify-by-decoration
    

    For details use

    git help log
    

提交回复
热议问题