The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fork without creating all branches

ccenvcvb
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events