Is there a way I can fetch branches from the fork of a team member ?

I am not able to access my colleague's  fork branches. We need this because we use to work on big requirements, and we want to be able to collaborate without merging unstable code to the main repository.

When I try to browse my colleague's fork on the browser, it says "permission denied". 

Thanks in advance,

Anoop.

1 answer

1 accepted

0 vote

Hi Anoop! If your colleague has forked the repository and didn't make it public or didn't give you permission to access it, you won't be able to see it or fetch its branches. 

A fork is just a copy of a repository, and it will not inherit the permissions of the repo it was forked from. For more information you can read Repository privacy permissions.

Cheers :) 

Ana

Hi Ana,

Thanks a lot for your help. 

My colleague added me with appropriate access permission for his fork and now I have acces to a particular fork.

But just wandering if there is a way to further simplify this. 

So we are basically team of around 50 contributers. And most of us work on multiple repos(eg: I have forked 5 repos). To provide whole team at least read access to my forks, do I need to add all members to all my forks manually? 

 

Thanks,

Anoop.

 

 

Hi Anoop, when forking a repository there's an option to inherit the same permissions as the parent repo, but it has to be specifically checked by the person that is forking it. You can find it under Advanced options as shown in this screenshot:

fork-repos.png

Hope it helps!

Ana

Hi Ana,

I am unable to see Advance setting options while forking :(

The options visible to me are as in attached image. We are new to bibucket, and our admin too is not quite familier with many options. 

forking_options.png

Thanks for all your help,

Anoop.

Hi Anoop, in your screenshot I can see you're using Bitbucket Server, but the functionality I was talking about it's only available for Bitbucket Cloud. 

There's a Feature Request for Server, however, and you can find it at BSERV-4037. You can vote for it to increase it's popularity, write a comment or add yourself as a watcher to be updated of further notifications.

Let us know if there's something else we can help you with :)

Cheers,

Ana

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,746 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you