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"?
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".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, there is a rather unexpected behaviour change for the main branch, which I did not find documented anywhere:
When looking a commit, normally Bitbucket shows all branches containing that commit in the top right corner (same as "git branch --contains <commit>").
However, when the main branch is part of that list, *only* the main branch is shown there (and reported back by the rest api via branch-utils/info.
Took me a while to find this as the cause of problems in our application
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.