How to unfork a Repository

Zvika Castel July 21, 2021

I've forked repo B from repo A.

now I want repo A to be removed (end of life) and repo B to be a repository, not a fork.

don't want no merge actions. too much time to test.


the final state is:

repo A is no longer exists, forked repo B turn into nonforked repo and maintain its original name.

IMHO, an UnFork option in BitBucket server would be nice to have...

2 answers

1 accepted

0 votes
Answer accepted
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 21, 2021

What if you clone "B", then delete both "A" and "B", then create a new repo "B" and import the stuff you cloned in the first step?

Zvika Castel July 24, 2021

Hi Aron,

Thank you for your reply.

I'm sure this will solve the situation, but to be honest, I hoped to get an answer like: In version x.y.z. of BitBucket server Atlassian kindly added this UnFork option.

Anyway, thank you again.

Like # people like this
0 votes
Miguel Costa February 28, 2023

yeah I'm actually looking for the same thing.

that or just the option "clone" repo.


lot's of times I create forks to keep everything from the source repo but then the repo will go it's own way (just keep the history). an option to mark the repo as "not a fork" would be welcomed

Miguel Costa February 28, 2023

by the way you should have realized already that bitbucket never implements things that people actually want, maybe they will recommend some marketplace plugin

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events