《版本控制系统介绍.ppt》由会员分享,可在线阅读,更多相关《版本控制系统介绍.ppt(64页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、版本控制系统介绍施懿民无锡海辉需要解决的问题在团队成员之间公布文档改动某人独立更新文档我家大门常打我家大门常打开开放怀抱等开开放怀抱等你拥抱过就有你拥抱过就有了默契你会爱了默契你会爱上这里上这里我家球门常打我家球门常打开开怀容纳天开开怀容纳天地一个两个不地一个两个不算稀奇再多也算稀奇再多也输得起输得起昨天今天文件乙单人独立更新文档的问题仅仅靠文件修改时间的差别,难以获取当前文件的历史版本。不容易查看当前文件与历史文件之间的修改记录。只好人工维护文档修改记录:修改时间修改时间修改人修改人修改记录修改记录版本号版本号某年某月某日XXX创建文档草稿后某年某月某日YYY添加项目需求分析1.1与1.2项
2、草稿0.2版或者只好通过制作重复备份,并不停地人工对比版本之间的差别.多人同时更新文档我家大门常打我家大门常打开开放开开放容纳天容纳天地地拥抱过就有拥抱过就有了默契了默契再多也再多也输得起输得起文件乙于是谁干的发生错误的时候无法追踪到责任人。多人同时更新文档的问题不方便在多个更新之间合并差异。也没办法获知在某一时间谁修改过这个共享文件。版本控制的基本理念文件共享的问题怎样允许团队成员共享信息,而不会让他们因意外而互相干扰?如何避免团队成员之间的文件意外覆盖的问题?如何避免文件误删除如何跟踪文件的修改情况?谁修改了文件,都做了哪些修改?如何将文件审核的流程整合到工具里面来?文件备份获取两年以前的
3、文件。变革!我们需要流程但是如何执行流程?1.下载文档2.更新文档3.分享你的改动想法1.签出文档(Check out)2.更新文档3.签入文档(Check in).解决方案修改文档的过程项目文件(Main Trunk)朱丽叶爱上罗密欧 1.0朱丽叶爱上施懿民 1.0朱丽叶爱上施懿民 1.1签出文件签入文件工具说的太多了,我要看效果!安装软件-Subversion下一步服务器端软件安装软件-TortoiseSVN下一步客户端软件安装软件完成日常工作客户端操作签出演示修改文档签入演示签入文件结果TortoiseSVN会更新文件的图标,告诉你文件的最新状态.签入命令将当前对文件以及文件夹所有的修改
4、,都当做原子操作发布.什么是原子操作?要么将所有修改都更新到版本服务器上,要么就不发布任何更新信息.检查修改历史在其他机器在获取文档改动取消本地修改取消本地修改等于用文件在版本服务器上最新的版本覆盖本地未签入的修改.文件改动冲突在签入文件的时候,如果两人同时修改同一文件,版本服务器会自动检测出来并提醒用户人工处理.更改冲突的解决方案 更新本地备份不要被WinRar的图标给迷惑了!.r22的意思是更新的标识(ID)号.显示文件不同版本之间的差异(Word文档)更改冲突的解决方案 合并服务器里面的改动更改冲突的解决方案 再次签入文件WOW!演示?分享万岁服务器日常管理通过客户端操作创建文档仓库(R
5、epository)打开SVN Server Manager创建新的Repository输入Repository名称在文件管理系统中,文档仓库(Repository)是存储数据的中心区域,它允许任意数量的客户连接读写数据;通过它,一个团队成员对文档的改动可以立即更新到其他成员那里.导入项目-方法1(不推荐)原始导入的文件夹不会自动变成工作数据(Working Copy)。导入的时候不能选择性的导入。什么是Working Copy?Working Copy导入项目-方法2导入项目-方法2导入项目-方法2导入项目-方法2(总结)Use the repository browser to creat
6、e a new project folder directly in the repository.Checkout the new folder over the top of the folder you want to import.You will get a warning that the local folder is not empty.Now you have a versioned top level folder with unversioned content.Use TortoiseSVN Add.on this versioned folder to add som
7、e or all of the content.You can add and remove files,set svn:ignore properties on folders and make any other changes you need to.Commit the top level folder,and you have a new versioned tree,and a local working copy,created from your existing folder.权限管理在服务器端操作用户管理基础“人以群分、物以类聚”在安全领域或许不是什么坏事按群分配权限的概念
8、排版组翻译组老大QAQA翻译文档项目文档改进意见 错误报告 其他文件授权系统简介 用户组与权限集 编辑管理员文稿排版PPermissionSetPPP两种用户管理模式Windows用户管理模式(推荐)Subversion用户管理模式有问题?F1附录一些参考资料在资源管理器当中,TortoiseSVN覆盖图标的含义。ChangeChangeChange Change ListListCheckoutCheckoutCheck Check in inConflictConflictResolveResolveA change(or diff,or delta)represents a specif
9、ic modification to a document under version control.The granularity of the modification considered a change varies between version control systems.Check inCheck inChange ListChange ListResolveResolveConflictConflictCheckoutCheckoutChangeChangeOn many version control systems with atomic multi-change
10、commits,a changelist,change set,or patch identifies the set of changes made in a single commit.This can also represent a sequential view of the source code,allowing source to be examined as of any particular changelist ID.A check-out(or checkout or co)creates a local working copy from the repository
11、.Either a specific revision is specified,or the latest is obtained.A commit(checkin,ci or,more rarely,install,submit or record)occurs when a copy of the changes made to the working copy is written or merged into the repository.A conflict occurs when two changes are made by different parties to the s
12、ame document,and the system is unable to reconcile the changes.A user must resolve the conflict by combining the changes,or by selecting one change in favour of the other.The act of user intervention to address a conflict between different changes to the same document.BranchBranchBase Base LineLineE
13、xportExportImportImportTrunkTrunkTagTagA set of files under version control may be branched or forked at a point in time so that,from that time forward,two copies of those files may be developed at different speeds or in different ways independently of the other.ImportImportBaselineBaselineTagTagTru
14、nkTrunkExportExportBranchBranchAn approved revision of a document or source file from which subsequent changes can be made.An export is similar to a check-out except that if creates a clean directory tree without the version control metadata used in a working copy.An import is the action of copying
15、a local directory tree(that is not currently a working copy)into the repository for the first time.The unique line of development that is not a branch(sometimes also called Baseline or Mainline)A tag or label refers to an important snapshot in time,consistent across many files.These files at that point may all be tagged with a user-friendly,meaningful name or revision number.See the discussion of baselines,labels,and tags.