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-commandscvs --help-synonyms 查看命令的簡寫形式,例如remove可以簡寫成rm
查看命令的協助cvs -H command_name
查看CVS命令的可用選項cvs --help-options
logincvs -d :pserver:someone@XXX.XXX.XXX.XXX:[port]/cvsroot login預設連接埠:2401
logoutcvs -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