Get the time and date of git tags

Question:

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

My goal is to list the releases and release dates in a web interface (tag/commit date = release date). Currently we list all the releases by using git tag.

How can I get the time and date for when the tag was made (or the commit it points to)?

Answer:

Use the --format argument to git log:

Leave a Reply