List tags with commits in the same format like git branch -v
- by NickSoft
Hi I would like to list tags like it's listed by:
# git branch -v
* devel e7f5e36 firxed bugs
master 63e9c56 remove unused code
without the * (you can't checkout tag).
It would be good to have an option to list full or short SHA1. A bash script is also fine, but it would be nice to use git commands more and shell scripting less.
I've read this question Git - how to tell which commit a tag points to and it helped me, but it's not all I want.
Edit:
I didn't know that annotated tags had SHA1. I wanted SHA1 of commits that tag points to, not the tags themselfs.