I am new to ClearCase (just started Today), I used GIT and SVN before for version control.
In Git, I generally 'clone' the repository to fetch the code to my local and do the 'checkout'
What is the equivalent for it in ClearCase?
I read the document (https://www.ibm.com/docs/en/rational-clearcase/9.0.1?topic=software-cleartool) but there is no clear definition for 'clone' and 'checkout'
Any help on this is appreciated and will be helpful for many!
First, I detailed general equivalences between Git and ClearCase in "What are the basic ClearCase concepts every developer should know?" (2009)
Second, there is no direct equivalent for git clone
, since a clone would get (with default settings) the full history of a remote repository, which is never done with ClearCase: you don't get the full copy of a VOB (Versioned Object Base). Said Vob can be as large as many terabyte!
In ClearCase:
Note: the term checkout is a loaded one.
git restore
, to restore files at a certain versiongit switch
(to switch branches, which is done in ClearCase by modifying the config spec of an existing view, or by creating another view alltogether)cleartool checkout
is used to mark a file for modification, and lock its state, before releasing the lock with a cleartool checkin
.