I am working on a script to automate branching, when i run a script it creates a head and pushes creates a new remote, i tried it with my personal repository and never had issues, but when i try to run it on my organization repo, it doesnt throw any error but i dont see a remote branch.
origin = cloned_repo.remote()
created_branch = cloned_repo.create_head(branch_name)
print("created branch :", created_branch)
origin.push(branch_name)