CVS Cheat Sheet

Environment Variables

export CVS_RSH=ssh
export CVSROOT=:ext:orgcbare@www.cbare.org:/home/orgcbare/cvsroot

Global -d Option

As an alternative to setting the CVSROOT environment variable, we can also use the global -d option.


cvs -d :ext:orgcbare@www.cbare.org:/home/orgcbare/cvsroot [...command...]

Import

Put a set of files rooted in originaldir into CVS with the name yoyodyne/rdir.


cd originaldir
cvs import -m "Imported sources" yoyodyne/rdir yoyo start

Checkout

Check a project out into localdir from the cvs name yoyodyne/rdir.


cvs checkout -d localdir yoyodyne/rdir

Sync

To check whether the contents of the repository and the local copy are out of sync, (due to changes on either side):


cvs -n update