I need to create a fork containing only the release branch of a repo.
The repo has hundreds feature / hotfix branches.
How can I select with branch(es) should be present in the fork ?
I tried creating a fork before but by default all branches are copied.
Deleting a single branch using git push --delete branch takes 3 seconds per branch.
In github there is an option to only fork the master branch. That is more or less what I'm looking for.
G'day, @ccenvcvb
Currently, Bitbucket Cloud does not support the ability to fork specific branches. However, I am interested to understand the reason you require this ability so I can create a feature request.
Having said that, technically if you forked a repo you can bulk any branch you don't want by navigating to the branch tab > click the "..." and select Delete multiple. This will allow you to select multiple branches and delete them in a much quicker way.
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.