git command to show all (lightweight) tags creation dates

GitDateTags

Git Problem Overview


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

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

Git Solutions


Solution 1 - Git

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.

Solution 2 - Git

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)'

Solution 3 - Git

You cannot

Lightweight (non-annotated) tags do only point to another object (like a commit, which has a date). See the one of the other answers to print these (creatordate).

Annotated tags do carry a date, an author and a message. The one of the other answers to print these (taggerdate).

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDror CohenView Question on Stackoverflow
Solution 1 - GitDror CohenView Answer on Stackoverflow
Solution 2 - GitvdboorView Answer on Stackoverflow
Solution 3 - GitFelixView Answer on Stackoverflow