tags:

views:

41

answers:

2

I would like to do something like git log, but I would like to see only tagged commits. I would like to see there tags, and when they were committed.

Any ideas?

A: 

git tag -n will list the commit comments next to the tags, but no dates.

Tony Eichelberger
+1  A: 

Use git-for-each-ref, as in the following:

$ git for-each-ref --count=3 --sort='-*authordate' refs/tags |
  while read sha1 objtype refname; do
    echo "$refname - $sha1"
    GIT_PAGER=cat git log -1 $sha1
    echo
  done
Greg Bacon