cvs 删除文件

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内

 » 相关连接:
cvs add、cvs update与cvs commit 文件在提交到cvs服务器前后的状态 Subversion的权限控制 SVN中文手册
Windows下安装和配置SVN Server(配 为编程开发准备一台友好的CVS服务 CVS服务器建立和权限配置 架设安全的CVS服务器
简单cvs ViewCVS安装Howto 用命令行CVS贡献源代码的修改 用命令行CVS管理项目文件和目录
 » 本栏目最新帖:

Powered by PHPWind v6.0 Code © 2003-08