기술 자료

​
​

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
        • partial add
        • partial checkin
        • partial checkout
        • partial configure
        • partial move
        • partial remove
        • partial shelveset
        • partial switch
        • partial undo
        • partial undocheckout
        • partial update
      • 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)

PARTIAL UNDO

Undo changes in a partial replica with the Unity Version Control CLI.
읽는 시간 4분
최근 업데이트: 10달 전

Description

Undoes changes in a workspace.

Usage

cm partial undo [<path>[ ...]] [--symlink] [-r | --recursive] [<filter>[ ...]] [--silent | --machinereadable [--startlineseparator=<sep>] [--endlineseparator=<sep>] [--fieldseparator=<sep>]]

Options

Option / Argument

Description

--symlinkApplies the undo operation to the symlink and not to the target.
-r | --recursiveExecutes the undo recursively.
--silentDoes not show any output.
--machinereadableOutputs the result in an easy-to-parse format.
--startlineseparatorUsed with the '--machinereadable' flag, specifies how the lines should start.
--endlineseparatorUsed with the '--machinereadable' flag, specifies how the lines should end.
--fieldseparatorUsed with the '--machinereadable' flag, specifies how the fields should be separated.
--checkedoutSelect checked-out files and directories.
--unchangedSelect files whose content is unchanged.
--changedSelect locally changed or checked-out files and directories.
--deletedSelect deleted files and directories.
--movedSelect moved files and directories.
--addedSelect added files and directories.
pathPath of the files or directories to apply the operation to. Use double quotes (" ") to specify paths containing spaces. Use a whitespace to separate paths. If no path is specified, by default the undo operation will take all of the files in the current directory.
filterApplies the specified filter or filters to the given paths. Use a whitespace to separate filters. See the Filters section for more information.

Help

Remarks

The undo command is dangerous - it undoes work in an irreversible way. Once the undo has finished, it is not possible to recover the previous state of the files and directories affected by it. If no path is specified in the arguments, by default it will undo every change in the current directory, but not recursively.

These are equivalent when executed from the /src directory

  • src
    • file.txt
    • code.cs
    • /test
      • test_a.py
      • test_b.py
cm partial undo
cm partial undo *
cm partial undo file.txt code.cs /test
cm partial undo .
cm partial undo /src file.txt code.cs
If you want the operation to be recursive, you must specify the '-r' flag.
To undo all of the changes below a directory (including changes affecting the directory itself):
cm partial undo dirpath -r
If dirpath is a workspace path, every change in the workspace will be undone.

Filters

If no flag is specified, by default, all changes are undone, but the paths can be filtered using one or more of the flags below. If a file or directory matches one or more of the specified kinds of change, all of the changes on said file or directory will be undone. For example, if you specify both '--checkedout' and '--moved', if a file is both checkedout and moved, both changes will be undone.

Examples

cm partial undo . -r
(Undoes all changes in the current directory recursively. If executed from the workspace's root, undoes all changes in the entire workspace.)
cm partial co file.txt
cm partial undo file.txt
(Undoes the checkout on file.txt.)
echo content >> file.txt
cm partial undo file.txt
(Undoes the local change to file.txt.)
cm partial undo src
(Undoes changes to the src directory and its files.)
cm partial undo src/*
(Undo changes in every file and directory contained in src, without affecting src.)
cm partial undo *.cs
(Undo changes to every file or directory that matches *.cs in the current directory.)
cm partial undo *.cs -r
(Undoes changes on every file or directory that matches *.cs in the current directory and every directory below it.)
cm partial co file1.txt file2.txt
echo content >> file1.txt
cm partial undo --unchanged
(Undoes the checkout of unchanged file2.txt, ignoring locally changed file1.txt.)
echo content >> file1.txt echo content >> file2.txt
cm partial co file1.txt
cm partial undo --checkedout
(Undoes the changes in checked-out file file1.txt, ignoring file2.txt as it is not checked-out.)
cm partial add file.txt
cm partial undo file.txt
(Undoes the add of file.txt, making it once again a private file.)
rm file1.txt echo content >> file2.txt
cm partial add file3.txt
cm partial undo --deleted --added *
(Undoes the file1.txt delete and file3.txt add, ignoring the file2.txt change.)

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • Description

      • Usage

      • Options

    • Help

      • Remarks

        • These are equivalent when executed from the /src directory

      • Filters

      • Examples


이 페이지의 문제 보고