Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Hello

Sorry if this is a kind of noobish question, but I couldn't find a solution to this.

I forked a repository from another account to my Bitbucket one. Now, I'd like to detach this fork. As for now in the repository overview I can read "Fork of: the original repository"; I'd like to remove this, but at the same time I'd like to preserve the commit history.

How can I do it?

I read from another answer that I should just remove the remote, but I couldn't find any remote variable in the configuration menu of the repository.. Where is that supposed to be?

Best regards

5 answers

The only way this could be done is to do the following

# retire your current repo keep it as read-only for references purposes.

# Create a new empty repository

# Move over current active branches  

Maybe this:

  • clone your downstream fork onto your local 
  • create a new empty repo on bitbucket 
  • rename "origin" on your local clone to your new empty repo
  • push your clone to the new origin
  • go to your new "origin" - check that all the commits and branches you expect to see are there

If you do this, you will lose all pull requests history

0 votes
evzijst Atlassian Team May 02, 2016

I'm afraid this is actually not possible. Short of deleting the original repository, the relationship cannot be broken. Note that this is not really out of any philosophical reason, but more something we have never gotten around to. If you feel strongly, please raise an issue at https://bitbucket.org/site/master

I can't find anyway to remove the "fork of" relationship either.  On GitHub this can only be done by a request to support, but is typically completed within a day or two.

If we're effectively taking ownership of a code base (where the original owner wants to keep their own record) are we best to simply clone and commit into a blank repo?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,741 views 10 16
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you