$> git tag
>>> regex = re.compile('^refs/tags') >>> filter(lambda r: regex.match(r), repo.listall_references())