REPOSITORY UNDELETE
Restore deleted repositories with the Unity Version Control CLI.
Read time 1 minuteLast updated 3 days ago
Description
Restores a deleted repository.
Usage
cm repository | repo undelete <repspec> [<new_name>]
Options
Option / Argument | Description |
|---|---|
| repspec | Deleted repository to restore, by name or by GUID. (Use 'cm help objectspec' to learn more about repository specifications.) |
| new_name | New name for the restored repository. If you don't set it, the repository keeps its name. |
Help
Remarks
Only server administrators can restore repositories, because only they can see deleted repositories. Restoring a repository also requires permission to create repositories on the server.
When a server administrator lists the repositories with , deleted repositories appear as .
cm repository list__DELETED__<name>If several deleted repositories have the same name, specify the repository by its GUID. To list the names and GUIDs of the repositories, run:
cm repository list myserver:8084 --format="{repname} {repguid}"
Examples
cm repository undelete oldrepo@myserver:8084
(Restores the deleted repository on .)
oldrepomyservercm repository undelete oldrepo@myorg@cloud newrepo
(Restores the deleted repository in the cloud organization , and names it .)
oldrepomyorgnewrepocm repository undelete 9b2f6c1e-6d3a-4e8b-9a4f-0c5d7e1a2b3c@myserver:8084
(Restores the deleted repository with the GUID on .)
9b2f6c1e-6d3a-4e8b-9a4f-0c5d7e1a2b3cmyserver