UNDELETE
Restore deleted items with the Unity Version Control CLI.
Read time 1 minuteLast updated 21 days ago
Description
Undeletes an item using a specific revision.Usage
cm undelete <revspec> <path>
Options
Option / Argument | Description |
|---|---|
| revspec | Specification of the revision whose contents will be loaded in the workspace. (Use 'cm help objectspec' to learn more about revision specs.) |
| path | Restore path. |
Help
Remarks
The item to undelete should not be already loaded in the workspace. The 'undelete' operation is not supported for xlinks.Example
cm undelete revid:756 C:\mywks\src\foo.c
cm undelete itemid:68#cs:2 C:\mywks\dir\myfile.pdf
cm undelete serverpath:/src#br:/main C:\mywks\Dir