Currently, I can create a repository with the following.
repo = Repo(\'my_path_to.git\') repo.git.branch(\'feature\') # To use it I just do. I am not sure if this