| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 874 |
|
The format for running CVS commands is:
yourhost% cvs <COMMAND> <OPTIONS>
As shown above, the command for checking out code is co (abbreviation for checkout). The command for adding new files or directories is add. The command for checking in changes to files is commit. diff is used to print the differences between a local copy and the version resident in the repository.
All commands in CVS are recursive by default. So if you wanted to list all of your changes, you would go to the top of the tree and run:
yourhost% cvs diff .
which says give me the difference in this directory including every directory beneath this directory.
When you check out files, you can check out all of the repository source:
yourhost% cvs co data
or only a small portion:
yourhost% cvs co data/geodetic/IGRF
After you have had code checked out for some time, you may want to bring it up to date with the current state of the code in the CVS repository. You use update to do this, e.g.
yourhost% cvs update .
update will not trample over your changes. It updates all files files which have not been modified, and where possible it merges in differences to files which you have modified without any problems. Where conflicts occur, it includes your changes and other changes in a diff-like format. When you get a warning about this problem, you must edit the file by hand and reconcile your changes and the other changes.
For more information about CVS, see the support page at cyclic.com.