CVS: Getting Started

Command Summary
export CVSROOT=/home/cvs In bash/sh/ksh, define cvs reporitory location for the session (saves on using -d on commands)
set CVSROOT=/home/cvs In csh/tcsh, define cvs reporitory location for the session (saves on using -d on commands)
cvs [ options ] command [ options ] [ argsuments ] Basic Syntax
cvs checkout <module> Checkout a module from the repository to the local directory.
cvs -n update Show all the files that and their status (locally modifies, repository changed etc...)
cvs update Bring the local working area up to date with regard to the repository.
cvs update <file> A 'cvs update' on a single file.
cvs update -PdA -P to Prune any empty directories,-d to Create any missing directories and -A to Reset stick tags etc (get latest)
cvs log <file> Look at the history of a file.
cvs diff <file> Show local changes to file verses the one that was checked out.
cvs diff -r 1. <file> Show local changes to file verses the latest one on the 1. branch.
cvs diff -r 1.4 -r 1.5 <file> Show the difference between repository file version 1.4 and 1.5
cvs commit <file> Commit local changes in the file to the repository.
cvs add <file> Add a new file (or directory) to the repository.
cvs status -v <file> View the status of the file including tag symbols.
cvs tag -c rel-0-4 . Tag all files in the current directory recursing down. Tag nothing if any locally modified files exist.
cvs tag -r 1.28 -F DEV_REL_1 <file> Move the existing tag DEV_REL_1 to revision 1.28.
cvs --help Help summary
cvs --help-commands List cvs commands
cvs --help-options List cvs options
cvs --help-synonyms List synonyms / abbreviations

See Also: rcs cvs


Roger
Roger Hall
COMPUSPEC
Google
 
Web Compuspec.net
Valid XHTML 1.0!
Valid CSS!