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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

24,329 views 26 12
Join discussion

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