기술 자료

​
​

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
    • Migrate from Git
    • Migrate from Perforce
    • Version Control settings
    • Configure the client
    • Version Control workflow
      • Set up a workspace
      • Create a repository
      • Use a nodata replica
      • Create a branch
      • Modify files
      • View file history
      • Code reviews
      • Code reviews (GUI)
      • Merge changes
        • Merge branches
        • Navigate the Mergetool window
        • Resolve merge conflicts
        • Checkouts
        • Shelve changes
        • Undo changes
    • Version Control tools
  • On-Prem
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Undo changes

Undo local changes in your repository.
읽는 시간 4분
최근 업데이트: 7달 전

To undo pending changes, use the Unity Devops Version Control application or the CLI. For more flexibility and specificity with the way that you undo changes, use the CLI.

Undo changes in the GUI

You can undo changes in the Pending Changes tab of the UVCS desktop application:
  1. Select the files that you want to undo.
  2. Add a comment and select Undo.
  3. Select Undo.
If you select the arrow on the Undo button, you have two additional options:
  • Undo unchanged: this option removes any files that you have checked out but not changed. You can also use this option to remove unchanged files from the list of pending changes.
  • Undo checkouts keeping changes: this option allows you to remove the checkout on a file but keep the changes in your pending changes.

Undo changes in the CLI

Undo all changes in a workspace

You can delete all of your pending changes and start from your original workspace.
To remove your pending changes, use the
cm undo -r
command. The
-r
executes the undo operation recursively.
cm undo -r

Filter the
undo

By default, the
undo
operation applies to all changes, but you can use filter options to restrict the undo to specific change types. In the following example, you have changed, added and deleted files:
>cm status/main/fix-1342@quake@localhost:8084 (cs:575 - head)ChangedStatus Size Last Modified PathChanged 49.23 KB 2 hours ago code\bsp-renamed.cChanged 23.42 KB 2 hours ago code\cgame\cg_drawtools.cChanged 61.23 KB 9 minutes ago libs\cmdlib.hChanged 398 bytes 8 minutes ago libs\str.hDeletedStatus Size PathRemoved 12.41 KB code\bsp-temp.cAddedStatus Size Last Modified PathAdded 4.42 KB 17 seconds ago code\bsp-experimental.c
You can use the following filters to undo the addition and deletion of files but keep the changes in the modified files:
>cm undo --added --deleted -r c:\Users\pablo\wkspaces\quake_path\code\bsp-experimental.c unchecked out correctly c:\Users\pablo\wkspaces\quake_path\code\bsp-temp.c unchecked out correctly
The filtered undo leaves you with the following status:
>cm status/main/fix-1342@quake@localhost:8084 (cs:575 - head)ChangedStatus Size Last Modified PathChanged 49.23 KB 2 hours ago code\bsp-renamed.cChanged 23.42 KB 2 hours ago code\cgame\cg_drawtools.cChanged 61.23 KB 10 minutes ago libs\cmdlib.hChanged 398 bytes 9 minutes ago libs\str.h

Undo a single change

To undo a single change, you run the
undo
command and specify the path.
참고
To view your changes and their paths, run the
cm status
command.
For example, you might have the following changes:
>cm status/main/fix-1342@quake@localhost:8084 (cs:575 - head)ChangedStatus Size Last Modified PathChanged 15.83 KB 50 seconds ago code\cgame\cg_ents.cChanged 35.27 KB 30 seconds ago code\cgame\cg_main.c
To undo only the changes to
cg_main.c
, run the following command:
>cm undo code\cgame\cg_main.cc:\Users\pablo\wkspaces\quake_path\code\cgame\cg_main.c unchecked out correctly>cm status/main/fix-1342@quake@localhost:8084 (cs:575 - head)ChangedStatus Size Last Modified PathChanged 15.83 KB 50 seconds ago code\cgame\cg_ents.c

Undo changes on specific paths

To undo changes only under a specific path, use the
cm undo
command and specify the path.
For example, if you have the following changes in your workspace:
>cm status/main/fix-1342@quake@localhost:8084 (cs:575 - head)ChangedStatus Size Last Modified PathChanged 15.83 KB 50 seconds ago code\lib\be_aas_cluster.cChanged 35.27 KB 5 minutes ago code\cgame\cg_ents.cChanged 73.15 KB 5 minutes ago code\cgame\cg_localents.cChanged 62.62 KB 5 minutes ago code\renderer\tr_cmds.cChanged 12.26 KB 5 minutes ago merge\Socket.cs
The following command undoes the changes in the
code
folder but keeps the changes in the
merge
folder:
>cm unco code -rc:\Users\pablo\wkspaces\quake_path\code\renderer\tr_cmds.c unchecked out correctlyc:\Users\pablo\wkspaces\quake_path\code\cgame\cg_localents.c unchecked out correctlyc:\Users\pablo\wkspaces\quake_path\code\cgame\cg_ents.c unchecked out correctlyc:\Users\pablo\wkspaces\quake_path\code\lib\be_aas_cluster.c unchecked out correctly>cm status/main/fix-1342@quake@localhost:8084 (cs:575 - head)ChangedStatus Size Last Modified PathChanged 12.26 KB 5 minutes ago merge\Socket.cs
참고
To filter more precisely, you can also use wildcards. For more information, refer to the CLI reference undo examples.

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

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

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

  • 보고 있는 페이지
    • Undo changes in the GUI

    • Undo changes in the CLI

      • Undo all changes in a workspace

      • Filter the undo

      • Undo a single change

      • Undo changes on specific paths


이 페이지의 문제 보고