218k views
4 votes
How to transfer bitbucket repository to another account

User Paaland
by
7.4k points

1 Answer

6 votes

Final answer:

Transferring a Bitbucket repository to another account involves preparing the repository, using the 'User and group access' section to transfer ownership or forking, and utilizing the import repository feature to clone it under a new account.

Step-by-step explanation:

To transfer a Bitbucket repository to another account, following these steps can lead to a seamless migration:

  1. Prepare the Repository: Ensure your local copy is up-to-date with any changes from the original repository.
  2. Transfer Ownership: In Bitbucket, navigate to the repository settings, locate the 'User and group access' section, and enter the username or email of the new owner. If necessary, you can also give them admin rights before transferring.
  3. Create a Fork: Alternatively, you can have the target account fork the repository. After forking, this new fork can be used as the main repository.
  4. Use Import Repository Feature: Bitbucket also provides a feature to import a repository where you can provide the URL of the existing repository to clone it under a new account.
  5. Update Repository References: Once the repository is transferred, ensure that all collaborators update their local remotes to point to the new repository's URL.

Remember to update any continuous integration or delivery configurations to point to the new repository location.

User Shaundra
by
8.0k points