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

How to fork without creating all branches

ccenvcvb January 23, 2024

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.

 

 

1 answer

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

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

Suggest an answer

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

Atlassian Community Events