Documentation

Unity Version Control

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

repspecDeleted repository to restore, by name or by GUID. (Use 'cm help objectspec' to learn more about repository specifications.)
new_nameNew 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
cm repository list
, deleted repositories appear as
__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
oldrepo
on
myserver
.)
cm repository undelete oldrepo@myorg@cloud newrepo
(Restores the deleted repository
oldrepo
in the cloud organization
myorg
, and names it
newrepo
.)
cm repository undelete 9b2f6c1e-6d3a-4e8b-9a4f-0c5d7e1a2b3c@myserver:8084
(Restores the deleted repository with the GUID
9b2f6c1e-6d3a-4e8b-9a4f-0c5d7e1a2b3c
on
myserver
.)