CHANGEREVISIONTYPE
Change item revision types with the Unity Version Control CLI.
Read time 1 minuteLast updated 21 days ago
Description
Changes an item revision type (binary or text).Usage
cm changerevisiontype | chgrevtype | crt <item_path>[ ...] --type=(bin | txt)
Options
Option / Argument | Description |
|---|---|
| item_path | Items to change revision type. Use double quotes (" ") to specify paths containing spaces. Use a whitespace to separate item paths. |
| --type | Target revisions type. Choose 'bin' or 'txt'. |
Help
Remarks
This command can only be applied to files, not directories. The specified type must be a system supported one: 'bin' or 'txt' (binary or text).Examples
(Changes 'file.txt' revision type to text.)cm changerevisiontype c:\workspace\file.txt --type=txt
(Changes 'comp.zip' and "image file.jpg" revision type to binary.)cm chgrevtype comp.zip "image file.jpg" --type=bin
(Changes revision type of all files to text.)cm crt *.* --type=txt