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

Why "master"?

Cheryl_Fogle February 12, 2019

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"?

2 answers

1 accepted

0 votes
Answer accepted
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 12, 2019

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.

1 vote
Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2019

 

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"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events