djacobs7
djacobs7

Reputation: 11827

How can I see the most recent tagged commits in my repository?

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?

Upvotes: 3

Views: 91

Answers (2)

Greg Bacon
Greg Bacon

Reputation: 139411

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

Upvotes: 2

Tony Eichelberger
Tony Eichelberger

Reputation: 7142

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

Upvotes: 0

Related Questions