Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi All,
We have multiple Bitbucket cloud work spaces with hundreds of repositories. We want to consolidate all the workspaces into a single/one workspace without loosing the data (metadata, commits, PR etc) from source to target. Are there any ways to do it? Can it be possible via automation scripts ?
Thanks
Shankar
Hi Shankar,
It is possible to transfer a repository to a different workspace. All commits and metadata get transferred, except for Deployment variables. In case you are using Pipelines and have Deployment variables in any of these repos, please make a note of them so you can recreate them after transfer.
You can read more details on how to transfer a repository here:
If you transfer a repository, its URL is going to change. Users who have a clone of repos you are going to transfer on their local machine will need to update the remote URL in each clone. Details are provided in the last section of the page I shared.
Please note that repositories with Git LFS cannot be transferred. In case you want to transfer a repo with Git LFS, please check the workaround provided on the following page (as mentioned on that page, metadata cannot be copied over for these repos):
I'm afraid that it is not possible to do a bulk transfer and that we don't have an API endpoint to automate this. The operation needs to be done through the UI for each repo, and the transfer request needs to be accepted by an admin of the workspace you are transferring to.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.