文档

​
​

Development

User Acquisition

Monetization

工业

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

此页面不支持所选语言。
​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
  • On-Prem
  • Gluon
  • CLI and shortcut references
    • Unity Version Control CLI
      • acl
      • activateuser
      • add
      • admin
      • annotate
      • api
      • applylocal
      • archive
      • attribute
      • autocomplete
      • branch
      • changelist
      • changerevisiontype
      • changeset
      • changeuserpassword
      • checkconnection
      • checkin
      • checkout
      • checkselectorsyntax
      • clone
      • codereview
      • configure
      • crypt
      • deactivateuser
      • diff
      • diffmetrics
      • fastexport
      • fastimport
      • fileinfo
      • find
      • getconfig
      • getfile
      • getrevision
      • getstatus
      • gettaskbranches
      • getworkspacefrompath
      • getworkspaceinfo
      • help
      • history
      • iostats
      • issuetracker
      • label
      • licenseinfo
      • linktask
      • list
      • listusers
      • location
      • lock
      • log
      • merge
      • move
      • objectspec
      • partial
      • patch
      • profile
      • pull
      • purge
      • push
      • query
      • remove
      • repository
      • revert
      • setowner
      • shelveset
      • show-find-objects
      • showacl
      • showcommands
      • showowner
      • showpermissions
      • support
      • switch
      • sync
      • trigger
      • tube
      • undelete
      • undo
      • undochange
      • undocheckout
      • undocheckoutunchanged
      • update
      • version
      • whoami
      • workspace
      • workspacestatus
      • xlink
    • CLI help
    • Pipe commands
    • cm find
    • Windows keyboard shortcuts
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

CHANGELIST

Manage changelists with the Unity Version Control CLI.
阅读时间3 分钟
最后更新于 10 个月前

Description

Groups pending changes in changelists.

Usage

cm changelist | clist [--symlink]
(Displays all changelists.)
cm changelist | clist create <clist_name> [<clist_desc>] [--persistent | --notpersistent] [--symlink]
(Creates a changelist.)
cm changelist | clist delete <clist_name> [--symlink]
(Deletes the selected changelist. If this changelist contains pending changes, then these will be moved to the default changelist.)
cm changelist | clist edit <clist_name> [<action_name> <action_value>] [--persistent | --notpersistent] [--symlink]
(Edits the selected changelist.)
cm changelist | clist <clist_name> (add | rm) <path_name>[ ...] [--symlink]
(Edits the selected changelist by adding ('add') or removing ('rm') the change(s) that match with the given path_name(s). Use a whitespace to separate path_names. Use double quotes (" ") to specify paths containing spaces. The status of the paths must be 'Added' or 'Checked-out'.)

Options

Option / Argument

Description

clist_nameThe name of the changelist. A path to a file containing the name can be used instead. More info at --namefile.
clist_descThe description of the changelist. A path to a file containing the description can be used instead. More info at --descriptionfile.
action_nameChoose between 'rename' or 'description' to edit the changelist.
action_valueApplies the new name or new description when editing the changelist.
--persistentThe changelist will remain in the workspace even if its contents are checked-in or reverted.
--notpersistent(Default) The changelist will not remain in the workspace even if its contents are checked-in or reverted.
--symlinkApplies the operation to the symlink and not to the target.
--namefileA valid path to a file containing the name of the changelist. Bear in mind the file must exist and its content cannot be neither empty nor multiline.
--newnamefileA valid path to a file containing the new name of the changelist when renaming. Bear in mind the file must exist and its content cannot be neither empty nor multiline.
--descriptionfileA valid path to a file containing the description for the changelist. Bear in mind the file must exist.

Help

Remarks

The 'changelist' command handles both the workspace pending changelists and the changes contained in a changelist.

Examples

cm changelist
(Shows the current workspace changelists.)
cm changelist create config_changes "dotConf files" --persistent
(Creates a new changelist named 'config_changes' and description 'dotConf files' which will remain persistent in the current workspace once the pending changelist is either checked-in or reverted.)
cm changelist create --namefile="name.txt" --descriptionfile="desc.txt"
(Creates a new changelist which name and description are both taken from files.)
cm changelist edit config_changes rename config_files --notpersistent
(Edits the changelist named 'config_changes' and renames it to 'config_files'. Also, it turns the changelist into "not persistent".)
cm changelist edit config_changes --notpersistent
(Edits the changelist named 'config_changes' by turning it into "not persistent".)
cm changelist delete config_files
(Removes the pending changelist 'config_files' from the current workspace.)
cm changelist delete --namefile="name.txt"
(Removes the changelist identified by the content of 'name.txt' file from the current workspace.)
cm changelist config_files add foo.conf
(Adds the file 'foo.conf' to the 'config_files' changelist.)
cm changelist config_files rm foo.conf readme.txt
(Removes the files 'foo.conf' and 'readme.txt' from the 'config_files' changelist and moves the files to the system default changelist.)
cm changelist edit --namefile="name.txt" description --descriptionfile="desc.txt"
(Edits the changelist identified by the content of 'name.txt' file, changing its description to the text content of the 'desc.txt' file.)
cm changelist edit --namefile="name.txt" rename --newnamefile="newname.txt"
(Edits the changelist identified by the content of 'name.txt' file, renaming it to the text content of the 'newname.txt' file.)

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Description

      • Usage

      • Options

    • Help

      • Remarks

      • Examples


报告此页面的问题