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

how to rename cloud main branch from master to main

eldon wong
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 14, 2024

There are some instructions on how to rename the main branch.  

These are steps I've taken on the command line:

git checkout master

git branch -m main

git push origin -u main

The branch is pushed to the Bitbucket (cloud)  and I can see the branch

However, when I try to switch the main branch in

Repository Settings ->  ... Main Branch   - the dropdown list does not main as a branch that can be selected.

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 15, 2024

G'day, @eldon wong 

Welcome to the community!

When you mentioned that you could see the branch, where did you see it?

That said, you should use the following method to create a new branch:

git checkout -b NEW_BRANCH_NAME

Could you try and let me know if that works?

Regards,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events