Skip to main content

All Questions

Tagged with
5 votes
2 answers
2k views

GitPython: getting the latest tag of a remote repo

I'd like to be able to check what's the latest tag for a given repo (I'm using CPython here as an example). The following works: g = git.cmd.Git() blob = g.ls_remote('https://github.com/python/...
ponadto's user avatar
  • 723
2 votes
1 answer
2k views

GitPython: remove multiple tags locally and remote

I'm using GitPython to remove multiple tags. I'm doing it with this code: def delete_tags(self, tags): remote = self.__repo.remote(name='origin') for tag in tags: self.__repo.git....
No1Lives4Ever's user avatar
3 votes
2 answers
4k views

Get tags of a commit

Given an object of GitPython Commit, how can I get the tags related to this commit? I'd enjoy having something like: next(repo.iter_commits()).tags
Uko's user avatar
  • 13.4k