git command to show all (lightweight) tags creation dates

前端 未结 2 485
执念已碎
执念已碎 2020-12-02 04:28

Is there a one liner that shows me the dates where all git lightweight tags where created ?

Something like: git show tags --format=date ?

相关标签:
2条回答
  • 2020-12-02 04:43

    The git tag -l shows a list of all tags. The --format argument can be used to define a custom output. For example:

    git tag -l --format='%(refname)   %(taggerdate)'
    

    Update, based on the comments below:

     git tag -l --sort=-creatordate --format='%(creatordate:short):  %(refname:short)'
    
    0 讨论(0)
  • 2020-12-02 05:04

    I found in this link a solution that fits my needs:

    git log --tags --simplify-by-decoration --pretty="format:%ai %d"
    

    I've put that command in an alias in my ~/.alias, so now everytime I run gitshowtagbydate I get what I needed.

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