Documentation

Support

Unity Version Control

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_pathItems to change revision type. Use double quotes (" ") to specify paths containing spaces. Use a whitespace to separate item paths.
--typeTarget 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

cm changerevisiontype c:\workspace\file.txt --type=txt
(Changes 'file.txt' revision type to text.)
cm chgrevtype comp.zip "image file.jpg" --type=bin
(Changes 'comp.zip' and "image file.jpg" revision type to binary.)
cm crt *.* --type=txt
(Changes revision type of all files to text.)