cvs remove [-f] [-l] [-R] [files...]
参数:
-f 在移除前删除本地文件,一般必加参数
-l 只操作本目录,而不操作子目录
-R 操作应用于子目录
1)在cvs\Entries中移走文件
E:\smb\800hrcvs\test>cvs -q remove -f e.txt
cvs remove: use 'cvs commit' to remove this file permanently
2)使用cvs update来查看e.txt文件的状态
E:\smb\800hrcvs\test>cvs update
cvs update: Updating .
R e.txt
3)提交remove到cvs服务器上
E:\smb\800hrcvs\test>cvs commit -m "test remove"
cvs commit: Examining .
Removing e.txt;
/users/cvsroot/800hrcvs/test/e.txt,v <-- e.txt
new revision: delete; previous revision: 1.2
done
4)使用cvs status查看文件e.txt的状态
E:\smb\800hrcvs\test>cvs status e.txt
============================================
File: no file e.txt Status: Up-to-date
Working revision: No entry for e.txt
Repository revision: 1.3 /users/cvsroot/800hrcvs/test/Attic/e.txt,v #文件在回收站Attic内