$ git tag
>>> import re >>> regex = re.compile('^refs/tags/') >>> [r for r in repo.references if regex.match(r)]
git-tag.