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)
Hello @Nadeem Syed ,
I'm not familiar with gitpython at all, so just guessing based on what you observed. Can you check that origin (cloned_repo.remote()) looks right? Maybe you have multiple upstreams, and origin is not where you're checking if the branch was created?
Another possibility is if you're checking via UI, Bitbucket won't show merged branches when you first open list of branches. Since there're no commits on that newly created branch, it is considered as merged. Can you check by switching to All branches from just Active branches in the dropdown above the table and see if that helps?
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events