Tuesday, November 18, 2008

Working with CVS

Though there are lot of tutorials on the internet for one to find out how to work with CVS. I would like to put few handy commands that I have found it difficult to recall when needed. That's going to save some time at least.

How do I checkout a branch?
cvs [-d /<cvs directory>] checkout -r <branch name> <release name>

This would checkout your files in the folder

How do I checkout a single file from cvs?
cvs
[-d /<cvs directory>] co <release name>/<path to file>

NB: Text within <> symbols have to be replaced with actual names as they exist on your CVS repository.