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
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.