WinCVS 命令行使用笔记

本文档提供了WinCVS命令行工具的使用说明,包括登录、列出项目、提交、添加及删除文件等核心操作步骤,并附有常用命令及其简写形式的介绍。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 
WinCVS 命令行使用笔记
Usage: cvs [cvs-options] command [command-options-and-arguments]
 where cvs-options are -q, -n, etc.
    (specify --help-options for a list of options)
 where command is add, admin, etc.
    (specify --help-commands for a list of commands
    or --help-synonyms for a list of command synonyms)
 where command-options-and-arguments depend on the specific command
    (specify -H followed by a command name for command-specific help)
 Specify --help to receive this message
 
The Concurrent Versions System (CVS) is a tool for version control.
For CVS updates and additional information, see
    the CVS home page at http://www.cvshome.org/ or
    Pascal Molli's CVS site at http://www.loria.fr/~molli/cvs-index.html
 
查看所有可用命令
cvs --help-commands
cvs --help-synonyms 查看命令的简写形式,例如remove可以简写成rm
 
查看命令的帮助
cvs -H command_name
 
查看CVS命令的可用选项
cvs --help-options
 
 
login
cvs -d :pserver:someone@XXX.XXX.XXX.XXX:[port]/cvsroot login
默认端口:2401
 
logout
cvs -d :pserver:someone@XXX.XXX.XXX.XXX:[port]/cvsroot logout
默认端口:2401
 
列出所有的项目
cvs ls
 
commit/ci 提交
浏览到文件(夹)所在目录
cvs commit -m "comment message" filename
 
添加文件(夹)
浏览到文件(夹)所在目录
cvs add filename
# 添加二进制文件
cvs add -kb filename
 
删除remove/rm 文件(夹)
浏览到文件(夹)所在目录
cvs remove -f filename
 
如果想删除在服务器生效,提交文件(夹) commit
如果想撤消删除操作,重新添加文件(夹) add
 
 
列出文件的修改记录
cvs log filename
 
文件版本的回退
cvs update -j currentRevision -j oldRevision filename
再将更新后的文件commit,新版本的文件内容同oldRevision
 
 
 
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值