This article describes how to transfer a Unity Version Control (UVCS) repository between two cloud organizations, using a local server as an intermediary. The process involves syncing the source repository from the original organization down to your local server. Afterward, you create a new repository in the destination organization and sync the contents from your local server up to it. This method ensures the full history of the repository is preserved during the transfer.
Question:
I have a repository on Org1@cloud. How do I transfer this repository to Org2@cloud?
Answer:
Unfortunately, a repository cannot be simply transferred to another Organization, but it can be copied. Here is how:
- Download and authenticate with the Unity Version Control client
- Open a terminal and use the following command: cm clone sourceRepo destRepo (See additional note for formatting)
- All users will need to create a new workspace for your newly created repository.
- (Optional) Once you are happily working with your new repository, delete the repository in Org1@cloud.
Additional Note:
- Repository specification format for a Unity Organization is {Project}/{Repo}@{Org}@unity
- Repository specification format for a Plastic SCM Organization is {Repo}@{Org}@cloud