[Python] gitpython - how to check if a remote branch exists?

Discussão em 'Python' iniciado por Stack, Março 21, 2025.

  1. Stack

    Stack Membro Participativo

    I'm new to gitpython and haven't been able to find a reference to this anywhere. What I'm looking to do is something like:

    If remote branch name exists:
    do something
    else:
    do something else


    Any suggestions?

    Continue reading...

Compartilhe esta Página