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

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
atlassian, jira cloud certification, managing jira projects, jira project administration, jira cloud exam, atlassian certification, agile project management, jira workflows, jira permissions, jira training, jira cloud skills, atlassian learning

Become a Certified Jira Service Project Expert 🦸🏻‍♂️

Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.

Get Certified! ✍️
AUG Leaders

Atlassian Community Events