Undo checkout using cleartool

sarat picture sarat · Aug 1, 2011 · Viewed 19k times · Source

How to undo checkout an element using cleartool command line tool in clearcase?

Answer

VonC picture VonC · Aug 1, 2011
cleartool unco /path/to/element

See the cleartool uncheckout man page

You have two options possible:

–kee/p

Preserves the contents of the checked-out version under a file-name of the form element-name.keep (or, to prevent name collisions, element-name.keep.1, element-name.keep.2, and so on).

–rm

Does not preserve the contents of the checked-out version. Thus, any edits that had been made to the checked-out version are lost.