Our team is new to BitBucket. We are currently migrating our applications out of our old source control and into BitBucket. When we create a new Repository in BitBucket, we use Visual Studio to "Publish Git Repo" and that creates a "master" branch that we would prefer to be called "production". In BitBucket, under our project settings, in the Branching model, we have changed "master" to "production" for the Production branch name. What more do we need to do to ensure this initial publish uses "production" instead of "master"?
Master is the default branch in Git, similar to trunk in SVN or main in ClearCase. Once the repository has been created you can rename the branch to production if you want before making it available for everyone to use.
Setting the "default branch" is done via "Repository --> Settings". Branching Model is related, but it's not the right feature to configure for this.
On Bitbucket Cloud (aka bitbucket.org):
--> select repository --> Settings --> Repository Details --> "Main branch"
On Bitbucket Server (aka on-prem):
--> select repository --> Repository settings --> Repository Details --> "Default branch"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.