How to get a list of tags and create new tags with python and dulwich in git?
问题 I am having problems to retrieve the following information of a git repo using python: I would like to get a list of all tags of this repository. I would like to checkout another branch and also create a new branch for staging. I would like to tag a commit with an annotated tag. I have looked into the dulwich's documentation and the way it works seems very bare-bones. Are there also alternatives which are easier to use? 回答1: The simplest way to get all tags using Dulwich is: from dulwich.repo