CVS完全手册.doc_第1页
CVS完全手册.doc_第2页
CVS完全手册.doc_第3页
CVS完全手册.doc_第4页
CVS完全手册.doc_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

CVSCVS=He Wehzhu, , created at 2003-11-5updated at 2003-11-12=CVSCVScvsCVSCVS/keywordCVSCVSWatchersWinCVSCVSWEB=CVSC/S* cvslock-modify-unlockmerge conflictCVS* ,*CVS=CVSCVSCVSROOTCVSROOT=:pserver:userserver#port:/path/to/cvsroot* pservergserver,kserver,ext* userCVS* serverCVSIP*/path/to/cvsrootCVSCVSROOTCVSshellprofile.bash_filesshCVSROOT=:ext:userserver#port:/path/to/cvsrootCVS_RSH=sshhints:CVSROOTcvs -d :pserver:userserver#port:/path/to/cvsrootCVSROOT cvs/.cvsrccvs -d :pserver:userserver#port:/path/to/cvsrootCVSROOTCVS=$cvslogincvsCVS/.cvspasscvs=cvs global_opts command command_opts command_argsGlobal options cvscommand_opts command?8?cvs -help-commandscvs -H command/cvs -help command hints:/.cvsrcupdate -cdiff -cadd -kbcvs -Qcvs global-option comand comand-option argumentsCVS=CVSa checkout working copyb staus c update ,updated e update f g commit eh b1. cvs checkout module_name-module_namemodule_namemodule_namecopymodule_namecheckoutcvs checkout2. cvs update filename-cvsCVS Virvual SourceSafeCVScommitcommitCVSCVSCVSIT WEN latest revision number in the repositoryconflict:CVS3. cvs commit -m write some comments here file_name-CVSCVScvs commit-m commentscvs commit file_name cvs(vi) -m bug fixed -m : -m EmailCVScommitCVScvs admin -m 1.3:write some comments here file_name4. -cvsstatus filenameFile:foo.cStatus:Up-to-dateWorkingrevision:SomeDate?82 ?Repositoryrevision:1.2/home/cvsroot/cvstest/foo.c,vStickyTag:(none)StickyDate:(none)StickyOptions:(none)StatusUp-to-date LocallyModified NeedingPatch NeedsMerge !5. -cvs log file_name=1. -cvs add new_file_namecvs add -kb new_file_namecvs add dir_nameCVSkeyword()Wordcvs add -kbcvs ci -m write some comments here new_file_name2. -cvs remove file_namecvs ci -m write some comments here file_namecvscommit=ci; update=up; checkout=co; remove=rm;3. -cvscvs movecvs renamecvs remove old_file_namecvs add new_file_name4. -checkoutcvs update -d5. (undo)-cvs update -C filenamecheckoutreadonly,cvs -r/.cvsrccvs edit filename,readonly,cvs unedit filename,undo,readonly6. -cvs update -j1.20 -j1.15 filenames1. 20commit,lockcvs update -r1.15 -r1.15sticky tagSTICK TAGcvs update -A 7 -cvs diff -c filenamecvs diff -c -r1.8 -r 1.5 filename?83?8 -cvs admin -l filescvs admin -u files=cvs20%80%CVSCVS10%=CVS/keyword=CVSkeyword(),$Id$ -lExp$Id$RCS$Log$ : $Author$ $Locker$ : $State$ : Exp, Stabe, Rel.Exp$Date$ : UTC$Revision$ : $RCSfile$ : RCS$Source$ : RCS$Name$ : $Header$ : $ Source $ Revision$Date$Author $State$Locker$Sticky Tag=tag,.1. cvs tag release_name module_name-release_name.2. cvs checkout -r release_name module_name-tag_name3. cvs update -A-tagCVS=CVS1. -cvs tag release_1_0 prj_dir_name2. -cvs commit -r 22.xCVSrevsion3. -2.x1.x2.xrelease_1_0release_1_0_b2cvs rtag -b -r release_1_0 release_1_0_bugfixes prj_dir_name?84?- rrelease_1_0,-b release_1_0_bugfixescvs424 -release_1_0_bugfixes1.0cvs checkout -r release_1_0_bugfixes2.x5 tag-release_1_0_bugfixes1.0cvs tag release_1_0_bugfixes_p16 -2.02.02.0release_1_0_patch_1cvs update -j release_1_0_bugfixes7 -1.xbug,release_1_0_patch_2,cvs update -j release_1_0_bugfixes_p1 -j release_1_0_bugfixesrelease_1_0_bugfixes_p1(tag)release_1_0_bugfixes()()65tag,tagtag8 -cvs admin -l r_0_2 r_0_2cvs admin -l 9 -cvs admin -b r_0_2 r_0_2cvs admin -b 10 cvscvs admin -o rev1:rev2 filename rev1rev2cvs admin -o rev1:rev2 filename rev1rev2rev1,rev2rev2,rev1cvs admin -o rev filename revtagtagCVS=1. -cvs,/gnu/cvs/2. -gunzip cvs-1.10.6.tar.gztar xvf cvs-1.10.6.tarcd cvs-1.10.6./configuremakemake install3. linux-rpm -ivh cvs-1.10.8-3.i386.rpm4. Repository-?85?groupadd cvs(cvs)useradd cvsrootmkdir /home/cvsrootcvs -d /home/cvsroot initchown -R cvsroot.cvs /home/cvsrootchmod -R ug+rwx /homecvsroot5. /etc/services-cvspserver,cvspserver 2401/tcp # cvs client/server operationscvspserver 2401/udp # cvs client/server operations6. inetd-/etc/inetd.confcvspserver stream tcp nowait root /usr/bin/cvs cvs -allow-root=/home/cvsroot pservertcpwrapperscvspserver stream tcp nowait root /usr/sbin/tcpd /usr/bin/cvs -allow-root=/usr/local/newrepos pserverxinetd/etc/xinetd.d/cvspserverservice cvspserverdisable = nosocket_type = streamwait = nouser = rootenv = HOME=server = /usr/bin/cvsserver_args = -f -allow-root=/home/cvsroot pserverpserver,sshserver-allow-rootRepositoryRepository7. cvs logincvsinetd-allow-root8. prj_dircd prj_dircvs import -m this is a cvstest project prj_dir v_0_0_1 startv_0_0_1start import Watchers=cvswatchemail,1. watchCVSROOT/notifyALL mail %s -s CVS notification2. emailemail,CVSROOT/usershwz:3. watchcvs watch add filenamecvs watch remove filename4. watchwatch,cvs editcvscvs edit filenamecvs unedit filename5. watchcvswatchcvs edit filenamecvs watch on6. watchcvs watchers?86?WinCVS=1WinCVSWinCVSCVSWindowsWindowsCVSCVSLinux/UnixWindowsWinCVSCVS2WinCVSWinCVS/project/showfiles.php?group_id=10072/project WinCVSCVSWinCVS3WinCVSaAdmin-Preferences/generalCVSROOT cvsrootAuthenticationcvspservercvsssh server,windowsopenssl,opensshaAdmin-Preferences/GlobalsCheckout read-only,edit selection,unedit selectionundowatchPrune empty directories: 4Admin-loginwincvsexit code 0,*CVS exited normally with code 0*5winCVScvs,CVSWEB=CVSWEBCVSWEB:/cgi/cvsweb.cgiCVSWEBCVSWEBhttp:/www.spaghetti-code.de/software/linux/cvsweb/1. tar zxf cvsweb.tgz2. cvsweb.confapachecp cvsweb.conf /path/to/apache/conf/path/to/apache/confcvsweb.confCVSROOT%CVSROOT = (Development = /path/to/cvsroot/dev, # /path/to/cvsroot/test, #=CVSROOT);cvsroot,cvsroot$cvstreedefault = test;3. cvsweb.conf$logo $defaulttitle $address email$long_intro $short_instruction 4. cvsweb.cgiapachecgicp cvsweb.cgi /path/to/apache/cgi-bin/path/to/apache/cgi-bincvsweb.cgi?87?cvsweb.cgiCGI

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论