How do I change an upstream repo to a downstream one?

I have a personal repo which I forked to a repo owned by a team. The team's repo should be considered the primary one, but I'm still the maintainer in either case. Since I forked the team's repo from my personal one, mine is listed as the upstream repo, and the team repo wants to sync updates from it.

But, I'd like it to be the other way around, I think. I'd like the team's repo to be upstream, my personal repo would sync changes, and I'd be able to submit pull requests to it.

Is there a way to change the upstream/downstream direction through bitbucket? If not, what would happen if I deleted my personal repo and then forked a new personal repo from the team one? I think theoretically that would work, but I'd like to be sure.

1 answer

1 accepted

Answering my own question...

Tested the following: deleted my original private repo, and the team's repo no longer references it as a fork. Created a new private repo by forking the team's and now the "stream" is in the desired direction.

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,940 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