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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,552,866
Community Members
 
Community Events
184
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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
AUG Leaders

Atlassian Community Events