Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to disable default branch being the default target branch in a pull request

We operate in an environment where there are a lot of branches, when I try to create a new pull request, in my case by default the 'master' branch becomes the target; This is not the target branch I'm looking for 99.9% of the time. Also, this tries to create a diff of commits being populated to the description section which I have to clean up too. 


Is there a way around this to make sure that the master branch is not preloaded in each and every new PR I try to raise?


Esther Strom Community Leader May 26, 2021

The default branch is set at the repo level; if you're a repo admin you can change it. Go to Repo Settings -> Branching Model:

2021-05-26 14_48_07-phconnectchicago _ atlassianscripts — Bitbucket - Vivaldi.png

You can  also set the main branch ( the one which you want to merge every time a PR is raised) by going under Repository Details and select Advanced Section. Choose Main Branch dropdown.


Log in or Sign up to
This widget could not be displayed.
Community showcase
Posted in Bitbucket

How do you use the Bitbucket-Jira integration? How does it help your team?

Hey everyone, over the past year, we've added several new features on how you can use Bitbucket and Jira together. We'd love to know how you are using the integration and how it's helping your team...

922 views 5 3
Join discussion

Community Events

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

Events near you