CVS Concurrent Version System
repository
cvs -d /home/cvsroot init
cvs import -m “message” $project_name $vedorag $releasetag
working directory
[:method:][[user][:password]@]hostname[:[port]]/path/to/repository
local :local:/usr/local/cvsroot
pserver :pserver:dli:dbrg2004@doublebridge.com.cn:/cvsdata/repository
ssh/rsh CVS_RSH=ssh/rsh
ext :ext:lidnux@doublebridge.com.cn:/cvsdata/repository
checkout
cvs -d /home/cvsroot checkout $project_name
cvs checkout $project_name
cvs co $project_name
update
cvs update
cvs up
cvs update -d
diff
cvs diff $file_name
cvs diff -r $tag_1 -r $tag_2 $file_name
commit
cvs commit $file_name # a editer($CVSEDITOR $EDITOR $VISUAL) will be opened.
cvs commit -m “$modify message” $file_name # no editer will be opened.
revision numsber
tag
cvs tag $tag_name –> commit
cvs rtag $tag_nem #tag the code in repository directly
status
cvs status $file_name
log
cvs log $file_name
add
cvs add $file_name –> commit
make newdir –> cvs add $directory_name –> no commit
cvs add -kb $file_name #add binary file
remove
rm $file_name –> cvs remove $file_name –> commit
rm -r $directory –> cvs update -p
change name
rm $file_name/$directory –> cvs add
revert
cvs update -j $tag_2 -j $tag_1 $file_name
cvs -Q update -p -r $tag_1 $filel_name>$file_name