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