CVS Command Format

CVS commands are of the form:

cvs global_options command command_options

For example, here is a simple sequence of commands showing both kinds of options in the context of creating a repository, importing existing files, and performing a few common operations on them:

$ cvs -d /usr/local/cvsrep init
$ cd ~/work/hello
$ cvs -d /usr/local/cvsrep import -m 'Import' hello vendor start
$ cd ..
$ mv hello hello.bak
$ cvs -d /usr/local/cvsrep checkout hello
$ cd hello
$ vi hello.c
$ cvs commit -m 'Fixed a typo'
$ cvs tag hello-1_0
$ cvs remove -f Makefile
$ cvs commit -m 'Removed old Makefile'
$ cvs upd -r hello-1_0
$ cvs upd -A

Some global options are common to both user and administrator commands, and some are specific to each. The common global options are described in the next section, and the administrator and user options are described in Section 17.5 and Section 17.6, respectively.

Get Mac OS X Panther in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.