Have a main branch in BitBucket named "trunk" (after import from SVN).
Also have branch named "master" - branched from "trunk".
How to set "master" the main branch in BitBucket and then delete "trunk" branch?
git symbolic-ref HEAD refs/head/mastergit branch -d trunk
In Bitbucket UI:
Now delete unnecessary branches with git branch -d.
In the updated Bitbucket UI, select *Settings* instead of *Administration* in Step 2.
After changing the main branch - when cicking on "save reporistory details" i get a wired error:
"You can't create repositories under this account."
refs/heads/master
NOT
refs/head/master
??
Check permissions if you don't see the "Settings" link.
Thanks, worked
Seems like you need admin access.
Is solution working for new branch to be set up as default branch? I need to set new default branch other than master, I need to each time do the same thing as first aswer, need to write and automation script which do the same for 4 repositories.
Ref - https://stackoverflow.com/a/37550604/1589444
It looks like you're new here. Sign in or register to get started.