Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undo checkout using cleartool

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

like image 270
sarat Avatar asked Aug 01 '11 06:08

sarat


People also ask

What is checkout in ClearCase?

Description. For one or more elements, the checkout command checks out a branch (typically, the most recent version on a branch). In most cases, this creates a writable copy of that version in the current view (the checked-out version), but see the section Checking out a DO version. An appropriate message is displayed.


1 Answers

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.

like image 60
VonC Avatar answered Sep 22 '22 19:09

VonC