Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,317
Community Members
 
Community Events
165
Community Groups

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

Contact technical support and have them detach the source repo from the forked repo.

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

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,228 views 2 9
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