PARTIAL UNDOCHECKOUT

Description

Undoes the checkout on an item.

Usage

cm partial undocheckout | unco <item_path>[ ...] [--silent] [--keepchanges | -k]

Options

Option / ArgumentDescription
--silentDoes not show any output.
--keepchanges (-k)Undoes the checkout and preserves the local changes. Sample: undo the checkout of a file leave it as locally changed with the same content on disk that it was. This option cannot be used with dynamic workspaces.
item_pathItems to apply the operation. Use double quotes (" ") to specify paths containing spaces. Use a whitespace to separate paths. Use . to apply the operation to current directory.

Help

Remarks

If an item is checked-out and you do not want to checkin it, you can undo the checkout using this command. Both files and folders can be unchecked out. The item will be updated to the state it had before checking it out.

Requirements

  • The item must be under source code control.
  • The item must be checked out.

Examples

cm partial undocheckout .

(Undoes checkouts in the current directory.)

cm partial undocheckout pic1.png pic2.png

cm unco c:\workspace\design01.png

(Undoes checkouts of the selected files.)