Documentation

Support

Unity Version Control

BRANCH RENAME

Rename branches with the Unity Version Control CLI.
Read time 1 minuteLast updated 21 days ago

Description

Renames a branch.

Usage

cm branch | br rename <brspec> <new_name>

Option / Argument

Description

brspecBranch to rename. (Use 'cm help objectspec' to learn more about branch specs.)
new_nameNew name for the branch.

Help

Remarks

This command renames a branch.

Examples

cm branch rename /main/task0 task1
(Renames branch '/main/task0' to '/main/task1'.)
cm br rename br:/main@reptest@server2:8084 secondary
(Renames the 'main' branch of repository 'reptest' to 'secondary'.)

BRANCH RENAME • Unity Version Control • Unity Docs