CVS Cheat Sheet
cvs status -v file -- shows all the tags assigned to file
cvs tag -c rel_1_0_3 -- adds the tag rel_1_0_3 to all files
cvs tag -c -l rel_1_0_3 -- adds the tag rel_1_0_3 to all files in local directory only
cvs tag -d rel_1_0_3 file -- removes the tag rel_1_0_3 from file
cvs -n -q update -dP -- check status of all files
cvs export -r rel_1_2 -d imap4bz-1.2 imap4bz -- create directory imap4bz-1.2 and add all files tagged with rel_1_2
cvs admin "-m1.5:New message" -- change the log message for revision 1.5
cvs admin -o1.5:: file -- roll back file to revision 1.5
cvs log file -- display the log messages for file
Create a new module
mkdir /var/cvs/doh -- create a new module for the doh project
cvs co doh -- checkout the module doh
cd doh
cp ~/file1.c .
cvs add file1.c -- add file1.c
cvs ci -m 'Added' file1.c -- commit file1.c
Check in a binary file
cvs add file.png -- add the file file.png
cvs admin -kb file.png -- set keyword substitution to binary for file.png
cvs ci -m 'Added' file.png -- commit file.png
Add an entry to the CVSROOT/passwd file
- perl -c 'print crypt("3n9tvrgt", "xy"), "\n"' -- "3n9tvrgt" is the password, "xy" is the "salt"
- Add the entry login:xyEL.9ZPubo2A:cvs -- login is the login name, xyEL.9ZPubo2A is the password hash, and cvs is the username on the server.