set cvsroot:
export CVSROOT=:pserver:andy@10.1.1.1:/home/cvs
login
cvs  login
import:
cvs  import  test andy ver1
test: project name on cvs server
andy:  Vendor-tag
ver1:  Version-tag
checkout:
get specific version:
cvs co -r  v1_2   projectName
get specific date:
cvs co -D "12/02/2008 13:00" projectName
get specific branch
cvs co -r branch_name  projectName
show status:
ex:
cvs st test.c
commit:
cvs commit  test.c
remove
1. rm test.c
2. cvs rmove teset.c
3. cvs commit test.c
when check out project next time, test.c is not checked out
but test.c is still on cvs server
Hence, we can roll back  the time test.c exists
 

沒有留言:
張貼留言