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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.