Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.

ClearCase Support: Creating Elements

Ever wonder how to add a file to source control in ClearCase from the command line. Here's how. First, check out the directory where you want to create a new file in a VOB. Second, run this command:

cleartool mkelem -ci -nc FILE_NAME

Finally, check in the new elementís parent directory.

If you want to create a new empty directory in the VOB, then run this command instead:

cleartool mkelem -ci -eltype directory -nc DIRECTORY_NAME

by Phil for Humanity
on 20070819

Related Articles
 » ClearCase Support: How to Find Checked Out Elements
 » ClearCase Support: Renaming and Moving Elements
 » ClearCase Support: Recursively Adding to Source Control