The aim of this how-to-guide🏁 is to demo how to check for the branch existence with gitPython
- assign branches to a var with
branches = git.Git().branch("-all").split()
- test for membership with
not inoperator with e.g.
"master" in branches→
- this is returning
Falsenot throwing exceptions