5分钟快速建立项目版本控制
2016-02-13 00:00
309 查看
无论是个人进行单独编码还是团体开发项目,项目的版本控制都是很重要的。就我所知的版本控制方式有两种。
最简单的版本控制就是保留软件不同版本的数份copy,并且适当编号。许多大型开发案都是使用这种简单技巧。虽然这种方法能用,但是很没效率。一是因为保存的数份copy几乎完全一样,也因为这种方法要高度依靠开发者的自我纪律,而常导致错误。
使用版本控制工具。常用的windows平台下的版本控制工具有svn,cvs,vss。
如果您还没有用过版本控制工具构建项目管理,本文将带你快速入门,本文使用的工具是基于svn的。
必备软件(这些软件目前是比较新的版本)
tortoiseSVN 1.65
Visual SVN Server 2.11(Visual SVN Server是自带Subversion和Apache的)
Visual SVN 1.77, Crack破解(Visual Studio插件)
SVN电子书(可选,如果想深入了解SVN,可以一读)
如果以上文件不能下载,请访问http://cid-d61a87db430d0cab.skydrive.live.com/browse.aspx/.Public/svn这个地址,下载文件都放在这里了。
安装过程
tortoiseSVN和Visual SVN的安装过程我就不赘述了,下面主要讲Visual SVN Server的安装过程。
![](http://static.oschina.net/uploads/img/201602/13191524_uuaA.png)
![](http://static.oschina.net/uploads/img/201602/13191524_fHoR.png)
下面的步骤就是next和install了。到此,软件环境就准备好了。
如何创建一个使用版本控制的Hello World项目
1.建立SVN服务器版本库(Create Repository)
创建用户
![](http://static.oschina.net/uploads/img/201602/13191524_265E.png)
![](http://static.oschina.net/uploads/img/201602/13191524_5bk4.png)
创建版本库
![](http://static.oschina.net/uploads/img/201602/13191524_4SdY.png)
![](http://static.oschina.net/uploads/img/201602/13191524_sfG2.png)
分配权限
![](http://static.oschina.net/uploads/img/201602/13191524_Xtgo.png)
![](http://static.oschina.net/uploads/img/201602/13191524_alRO.png)
2.把项目导入到服务器版本库中(Import project to repository)
![](http://static.oschina.net/uploads/img/201602/13191524_yfWt.png)
![](http://static.oschina.net/uploads/img/201602/13191524_Q5oN.png)
![](http://static.oschina.net/uploads/img/201602/13191524_Duwk.png)
![](http://static.oschina.net/uploads/img/201602/13191524_M7AC.png)
![](http://static.oschina.net/uploads/img/201602/13191524_QiFn.png)
![](http://static.oschina.net/uploads/img/201602/13191525_nsj7.png)
3. 客户端签出项目(check out the project)
![](http://static.oschina.net/uploads/img/201602/13191525_RDN7.png)
![](http://static.oschina.net/uploads/img/201602/13191525_2wGg.png)
签出以后,可以看到每个文件前都有绿色的小图标
![](http://static.oschina.net/uploads/img/201602/13191525_vjfN.png)
![](http://static.oschina.net/uploads/img/201602/13191525_Jauo.png)
最简单的版本控制就是保留软件不同版本的数份copy,并且适当编号。许多大型开发案都是使用这种简单技巧。虽然这种方法能用,但是很没效率。一是因为保存的数份copy几乎完全一样,也因为这种方法要高度依靠开发者的自我纪律,而常导致错误。
使用版本控制工具。常用的windows平台下的版本控制工具有svn,cvs,vss。
如果您还没有用过版本控制工具构建项目管理,本文将带你快速入门,本文使用的工具是基于svn的。
必备软件(这些软件目前是比较新的版本)
tortoiseSVN 1.65
Visual SVN Server 2.11(Visual SVN Server是自带Subversion和Apache的)
Visual SVN 1.77, Crack破解(Visual Studio插件)
SVN电子书(可选,如果想深入了解SVN,可以一读)
如果以上文件不能下载,请访问http://cid-d61a87db430d0cab.skydrive.live.com/browse.aspx/.Public/svn这个地址,下载文件都放在这里了。
安装过程
tortoiseSVN和Visual SVN的安装过程我就不赘述了,下面主要讲Visual SVN Server的安装过程。
![](http://static.oschina.net/uploads/img/201602/13191524_uuaA.png)
![](http://static.oschina.net/uploads/img/201602/13191524_fHoR.png)
下面的步骤就是next和install了。到此,软件环境就准备好了。
如何创建一个使用版本控制的Hello World项目
1.建立SVN服务器版本库(Create Repository)
创建用户
![](http://static.oschina.net/uploads/img/201602/13191524_265E.png)
![](http://static.oschina.net/uploads/img/201602/13191524_5bk4.png)
创建版本库
![](http://static.oschina.net/uploads/img/201602/13191524_4SdY.png)
![](http://static.oschina.net/uploads/img/201602/13191524_sfG2.png)
分配权限
![](http://static.oschina.net/uploads/img/201602/13191524_Xtgo.png)
![](http://static.oschina.net/uploads/img/201602/13191524_alRO.png)
2.把项目导入到服务器版本库中(Import project to repository)
![](http://static.oschina.net/uploads/img/201602/13191524_yfWt.png)
![](http://static.oschina.net/uploads/img/201602/13191524_Q5oN.png)
![](http://static.oschina.net/uploads/img/201602/13191524_Duwk.png)
![](http://static.oschina.net/uploads/img/201602/13191524_M7AC.png)
![](http://static.oschina.net/uploads/img/201602/13191524_QiFn.png)
![](http://static.oschina.net/uploads/img/201602/13191525_nsj7.png)
3. 客户端签出项目(check out the project)
![](http://static.oschina.net/uploads/img/201602/13191525_RDN7.png)
![](http://static.oschina.net/uploads/img/201602/13191525_2wGg.png)
签出以后,可以看到每个文件前都有绿色的小图标
![](http://static.oschina.net/uploads/img/201602/13191525_vjfN.png)
![](http://static.oschina.net/uploads/img/201602/13191525_Jauo.png)
相关文章推荐
- SVN的标准目录结构:trunk、branches、tags
- Python在Windows环境下命令行中使用UTF-8编码输出乱码解决
- CSS:height: 100%失效原因,如何让它生效
- win10下打开genymotion出错的解决办法
- 微信开发网址
- linux 修改mysql密码
- 使用handler更新下载图片简单例子
- 切换图片2种常用方式(1、子线程2、定时器)
- SDCARD文件工具类、联网工具类、数据库操作工具类
- sdcard存储图片下载简单操作
- 自定义ContentProvider(内容提供者)简单使用例子
- 参数展开(parameter expansion)
- 解析XML文件的几种常见操作方法:DOM/SAX/DOM4j
- Ueditor 1.4.3.1 使用 ThinkPHP 3.2.3 的上传类进行图片上传
- Appium环境搭建步骤 For Mac
- 腾讯的职级系统 梁宁-闲花照水录
- Java中实现反盗链Filter
- 【慕课笔记】U4 多态 第6节 综合练习
- 华为机试题:输入整型数组和排序标识,对其元素按照升序或降序进行排序
- LW教你自定义安卓控件之LoadingView