In Git, for pushing our code to the new branch we do the following steps:
- Checkout the new branch
- Make changes in it
- Commit the code to the branch with commit message
- Push the code to the branch
What is the equivalent for it in ClearCase? It is so confusing!
Any help on this is appreciated!
In ClearCase, you would, for a regular view (dynamic in your case, from your last question):
/main/0.mainbranch (any element, file or folder, has at least one version on that default branchmain).do a
cleartool checkoutof any file you need to modify (file after file: ClearCase operates at a file level, as opposed to Git which operates at the commit level, meaning at a full repository snapshot level).Then edit your file
do a cleartool checkin of each file you have modify (or cleartool unco, for undo checkout, if you want to cancel a file modification, meaning you don't want to commit it).
So each file would have its own commit message.
the checkin itself does push automatically the change (of one single file) to ClearCase. Repeat for the other files.