CVS

Quick Intro Links
Last change: Wed Mar 28 16:04:36 UTC 2001

Quick Intro

why CVS running CVS the most important commands

Why CVS?

CVS is a drugstore chain. It also short for Concurrent Versions System. CVS stores a set of files and all the mods that have been made to them. It stores the mods as dated, annotated, version-numbered diffs. CVS stores all this in a place known as the repository (aka $CVSROOT), which may be on a local machine or somewhere on the Internet.

Among other things, CVS lets you:

When you check out files, CVS does not lock them, as its predecessor RCS did. Rather it lets users freely check out, modify and commit (check in) files at will. CVS is smart enough to inteligently merge the changes back into the baseline -- in most cases. Occasionally, though, there are merges that it can't handle, as when two users modify the same line of the same file at the same time. CVS kicks out such conflicts and lets the humans resolve it.

Running CVS

There are several ways to run CVS:

Basic Commands

The following assumes that you are working from a UNIX shell. Other clients will have similar functionality, though hopefully with a more intuitive interface.

The following examples assume that a repository and $CVSROOT has already been set up and defined and the project you want to work on has already been imported into CVS.

CVS has many commands and options, but 90% of the time you will use only these commands:


login
checkout
update
add
commit

The other 10% of the time, you can either read the documentation or ask the resident guru.

For more in-depth info, see either the Quick Reference, the Guide to CVS Commands or, most definitive of all, the Cederqvist.

A good book which I have and recommend is Open Source Development with CVS by Karl Fogel, which allows you learn CVS to the depth you wish.


Links


Created Tue Mar 13 22:17:55 2001 by Stephen Kalb.
go home email me    
~stefano@pobox.com/11.480 C 05 16:04:36 T T 1