In my python program, I want to check whether a ref exists on my remote. I can check the remote with git ls-remote
, but I would like to avoid parsing the output myself.
I found git.remote.Remote
in GitPython
, but that only refers to a remote of a local repository.
Does GitPython
have an equivalent command which allows me to look at remote refs without cloning the repository?