cvs

来源:互联网 发布:系统架构图软件 编辑:程序博客网 时间:2024/04/29 07:50

export CVSROOT=xxx@xxxxx:/toyour/path

export CVS_RSH=SSH

服务器端:

初始化:CVS版本库的初始化。 
  cvs init
  一个项目的首次导入
  cvs import -m "write some comments here" project_name vendor_tag release_tag
  执行后:会将所有源文件及目录导入到/path/to/cvsroot/project_name目录下  vender_tag: 开发商标记 
  release_tag: 版本发布标记


客户端:

1. 导出cvs co projectname

2. cvs update 同步所有已有文件

3. cvs update filename 同步某文件

4. cvs update -d 同步,包括新的目录

5. 上交新文件:cvs add filename;   cvs commit

6. 删除文件:cvs remove filename ;  cvs commit

7 查看历史:cvs log filename  或 cvs history filename

8. 比较不同版本 cvs diff -r1.3 -r1.5 filename


原创粉丝点击