Use the git cli from Python.
This project currently is not heavily tested and not fully feature complete
- Git (version 2.30)
import asyncio
from git_interface.branch import get_branches
head, other_branches = asyncio.run(get_branches("my_git_repo.git"))
print("HEAD = ", head)
print("OTHER", other_branches)