免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 858 | 回复: 0
打印 上一主题 下一主题

Short CVS command summary [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-17 09:36 |只看该作者 |倒序浏览


Russ Allbery
Last modified April 8, 2001 (revision 1.2)
To obtain a local checked out copy of a portion of the repository, use:
    cvs checkout
or
    cvs co
To change the directory CVS creates for those files, use the -d option after "checkout" or "co". CVS will need to know the path to the repository, so make sure the environment variable CVSROOT is set (generally to /afs/ir/dev/cvs).
To release and delete a checked out copy, use:
    cvs release -d
To update a checked out copy from the repository, getting new versions of files and merging changes into modified versions of files as necessary, use:
    cvs update
(optionally giving it a specific filename or directory). To just see what's different between your copy and the repository without changing anything, use:
    cvs -n update
To commit changes to a file (or set of files) to the repository, use:
    cvs commit
CVS will open an editor window (vi by default) into which you should enter a log message. If multiple files are given on the command line, they'll all have the same log message (provided they're all in the same directory).
To add a new file to the repository, create it first and then use:
    cvs add -m'Brief description.'
    cvs commit
To mark a file as deleted in the repository, use:
    cvs remove -f
    cvs commit
Warning: This will also delete the file in your local copy.
To see the changes between a locally modified file and the last committed revision, use:
    cvs diff
(diff -u for a unified context diff).


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/73738/showart_1083920.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP