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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Bitbucket: How to change repository ownership from user to team?

Hello. How to change repository ownership from user to team?

8 answers

1 accepted

49 votes
Answer accepted
Daniel Wester Community Leader Mar 25, 2015

From https://confluence.atlassian.com/display/BITBUCKET/Change+or+transfer+repository+ownership

"Make sure you know which user you want to transfer the repository to before you begin. Then, do the following:

  1. Log into Bitbucket using the account that owns the repository.
    This is the user the repository is transferring from.
  2. Go to the repository you want to transfer.
  3. Go to the repository's settings.
  4. Select Transfer repository from the left-side menu.
    The system opens the Transfer repository page:
  5. Enter the Username of the individual or team account you want to transfer to.

  6. Press Transfer repository.
    The Bitbucket server sends the user or team account a message containing a transfer request. The message goes to both the user's Bitbucket inbox and the external email inbox."

The admins of the team account then has to log in and accept the transfer.

Like youssef jebbouri likes this

when I created the Team I never created an account. So I am not sure how to accept the transfer, or how to associate the Team with a new user... should it be associated with the User used to create the team?

Like # people like this

I would like to confirm that this answer is awesome because it comes handy to me.

Thank you. It works perfectly.

Thank you! This helped our team as well.

I see this post is old and I wonder if the Web UI has changed ever since because I can't find "Transfer repository". What now?

EDIT: I just found it. We Need to do another step before #4:
3.5 Select "Repository Details".

Thanks Rainer.

Like youssef jebbouri likes this

Thanks Rainer. I am just extending answer that If user account is older then select Repository Details from Setting as Rain explained. After scroll to bottom and you will see the Transfer Repository option.

fuck, transfer request not show for new owner!!!

Like Rey likes this

After year looks like they fixed this. New owner see trasfer request and receive mail notification.

Below method works for me when you are already part of the team.

You can go to Projects, Select desired project, Add repositories from an individual account

This worked for me and didn't require jumping between users. It'll even warn you that the ownership will be transferred. 

This thread doesn't include the receiving end. I am waiting to get a repository transfer from an account I don't own into my new account and I don't know what to expect. No email was received and no notification was posted on my new account. What are the steps to accept the transfer? Appreciate the help.

Same here. A repository's ownership is pending (was sent to me) but after repeatedly coming back over the last couple of months I still can't figure out how to accept it:

 

This repository's ownership is pending transfer to xyz. Visit the repository details page for more info.

 

This page only shows the initiator and receiver of the transfer. I can't do anything there.

Like Lloyd Randall likes this

Right now you can only accept a transfer via the e-mail that's been sent to the email address of the account. So make sure you have access to the email address of the receiving account, then you can accept via a link in that email.

And who would the receiving account be? It's supposedly sent to our team/organization, but to our knowledge no e-mail is configured there.

When you created an account, an email address was required. It's supposed to be that address. When you log in as the receiving account and you go to Manage Settings, you should see an email address there (under 'Atlassian Account'). That should be the one!

Thanks! We know our accounts' e-mail addresses, but we found out what the actual problem was: we had one group that was set as 'Admin' for the team, but notifications were disabled on that account, so, no e-mails... it's fixed now! Thanks.

Nice! Hope you can help someone else in the future with this answer too!

1 vote

How should I synchronise my local repository  after I transferred the remote one to a new ownership?

I can not simply push to the remote repository now because my local repository is still has a link to the previous ownership.

Andrey I'm New Here Jun 15, 2020

Ok, I found an answer :)

If you have the same problem then try this: 

$ git remote set-url origin new_url

Is it normal that it's taking more than 17 minutes? It's just a small repository

The person you transferred it to has to accept, maybe this is what's taking time.

Update 

They changed it again, now you go to:

Repository settings -> Repository Details -> click the 3 dots at the right top: you will find "transfer repository" there.

Suggest an answer

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

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

2,111 views 0 7
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