Weitere ähnliche Inhalte
Ähnlich wie 香港六合彩 » SlideShare (20)
香港六合彩 » SlideShare
- 4. 什么是 CVS
Concurrent Version System
并发版本控制系统
Unix 端服务器
http://www.cvshome.org
其他平台的客户端
http://www.wincvs.org/
FAQ
http://www.loria.fr/~molli/cvs-index.html
- 6. CVS 开始第一个项目
环境变量 $CVSROOT :
– bash: CVSROOT=/home/cvsroot ; export CVSROOT
– tcsh: setenv CVSROOT /home/cvsroot
CVSROOT 库初始化: cvs init
项目包首次导入: cvs import
– cvs import -m "write some comments here" project_name vender_tag release_tag
- 7. CVS 的使用命令
cvs checkout proj_name 导出项目包
cvs commit –m “write comments” file_name 提交更新
cvs update –m “write comments” file_name 同步库
cvs log file_name 查看修改日志
cvs diff –r1.2 –r1.3 file_name 查看文件版本区别
cvs add file_name 添加新文件到项目包
cvs remove file_name 从项目包里删除文件
- 8. CVS 的使用流程
cvs checkout( 首次导出 ) cvs up( 同步代
码 )cvs commit( 提交修改 )cvs up
(同步代码) cvs commit( 提交修改 )
…..
恢复到一个旧的版本:
如果用 cvs update -r1.2 file.name
这个命令是给 file.name 加一个 STICK TAG : "1.2" ,虽然你的本意只是
想将它恢复到 1.2 版本
正确的恢复版本的方法是: cvs update -p -r1.2 file.name >file.name
如果不小心忘了 -p 加成 STICK TAG 的话:用 cvs update –A 解决
- 9. CVS 的远程用户认证
通过 SSH 远程登陆 CVS :
CVSROOT=:ext:$USER@test.server.address#port:/path/to/cvsroot CVS_RSH=ssh; export CVSROOT CVS_RSH
CVS 服务器端 SSH 端口不在缺省的 22
假设服务器端的 ssh 端口是 34567 ,客户端,创建 ssh_cvs
#!/usr/bin/sh
ssh -p 34567 $*
然后: chmod +x ssh_cvs
设置 CVS_RSH=ssh_cvs; export CVS_RSH
- 10. CVS Web 界面访问
方便文件版本跟踪
– http://www.freebsd.org/~fenner/cvsweb/
– 一个功能更丰富的版本
http://www.spaghetti-code.de/software/linux/cvsweb/
- 14. 相关资源
CVS HOME :
http://www.cvshome.org
CVS FAQ :
http://www.loria.fr/~molli/cvs-index.html
相关网站 :
http://directory.google.com/Top/Computers/Software/Configuration_Management/Too
ls/Concurrent_Versions_System/
CVS 免费书 :
http://cvsbook.red-bean.com/
CVS 命令的速查卡片:
http://www.refcards.com/about/cvs.html
WinCVS:
http://www.wincvs.org
CVSTrac: A Web-Based Bug And Patch-Set Tracking System For CVS
http://www.cvstrac.org