What does the "Main branch" settings in Repository details means?

What does the "Main branch" settings in Repository details means?

We noticed that if we change Main branch, if you create a new branch, then. the Main branch is the default "destination" when you want to merge it back. Is this the only use for the Main branch setting? 

Is there any problem in making our "Main branch" the "Development" branch instead of "master"?

 

3 answers

Just as you two have commented on, in Bitbucket 4.8.5 there is no "main" branch setting, however there is the Default Branch setting on the same Repository Details page with the description:

Select the default branch for browsing and cloning the repository. Git chooses the "master" branch by default.

Therefore, just as you suspected, it should not have any undesired effects by setting this to Development, especially if you're worried about accidentally committing or merging into the Master.

Bitbucket Cloud calls it "main branch", since new Mercurial repos have "default" instead of "master".

I don't know the answer to the first part, but you can make it whatever you want. The "development" and "master" branches are just default because they're so common, nothing about git requires that your repository contains either one.

Yeah, I know about that, we are just not sure if the Main branch setting has some other use or if changing it has any other implications. We found no reference about it in Bitbucket Help

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

705 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot