Ramprasad

/home/resources

[Powered by FreeBSD UNIX]

[Powered by Yahoo! Small Business]

Valid HTML 4.01!

Valid CSS!

Using Concurrent Version System (CVS)

Introduction

CVS is a version control system. Using it, you can record the history of your (source) files.

Adding new project

Place the following two lines either in .bashrc or .profile file
CVSROOT=~/cvsroot
export CVSROOT

For remote servers - ssh or rsh
CVS_RSH=ssh
export CVS_RSH

cvs -d ~/cvsroot/ init
cd ~/project
cvs import -m "Initial version of project - Project" /project project start

Adding new modules

cd ~/project
mkdir module
mkdir module/config
mkdir module/src

cvs import -m "Adding new module - module" /project module start

Then, use cvs add to add files (and new directories)
cd module/src
cvs add module.c module.h
cvs commit -m "Initial version." module.c module.h

Checking Out

cvs co project

If the cvs server has been configured to access it with an account, then
cvs -z3 -d:ext:username@hostname:/project co project

Committing

cvs commit -m "message" filename(s)

Updating

cvs update

Difference

cvs diff filename

Adding file or directory

cvs add filename or cvs add directoryname
cvs commit

Note: cvs add -kb filename - To add binary file(s)

View Status

cvs status filename

View Log

cvs log filename

Deleting file

rm filename
cvs delete filename
cvs commit -m "message" filename

Status

cvs status filename


Last modified: 21/January/2009