Windows Server 2008 R2下SVN服务器的搭建

Windows Server 2008 R2SVN服务器的搭建

一、需要软件

1、服务器端 VisualSVN-Server-3.3.1-x64

2、客户端 TortoiseSVN-1.8.11.26392-x64-svn-1.8.13

3、客户端中文语言包 LanguagePack_1.8.11.26392-x64-zh_CN

二、安装

1、安装VisualSVN-Server

1 选择visualsvn server and management

勾选Add Subversion command-line tools to the PATH environment variable...

2 点击 Standard Edition

     Location 为程序安装目录

Repositories 为文件库目录

Server Port  端口号

默认选中 Use secure connection(https://)

2、安装TortoiseSVN

3、安装语言包

   任意空白处点击右键,在右键菜单中选择TortoiseSVNsettings

   General,语言选择“简体中文”

三、使用

1、新建版本库

右键单击左边窗口的Repositores

    选择Create New Repository,或者新建->Repository

    选择Regular FSFS repository

输入版本库名称,选择single-project repository...

选择All Subversion users have Read/Write access

2、新建用户

     右键单击Users选择Create User或者新建->User

填写User name和Password

3、新建用户组

右键单击Groups选择Create Group或者新建->Group,

Add...添加用户

4、配置权限

在Repository上单击右键,选择Properties

Add...添加组,给组选择权限

5、检出

1、在Repository上单击右键,选择Copy URL to Clipboard

2、在任意空白处右键,TortoiseSVN--SVN检出

3、输入用户名和密码,检出

四、TortoiseSVN的使用

1、将项目导入版本库中,在项目文件夹上点击右键,TortoiseSVN--导入

2、将新文件导入版本库:在新文件添加到检出的工作副本中,右键TortoiseSVN--加入

       右键--SVN提交

3、将新文件导入版本库:在新文件添加到检出的工作副本中,右键TortoiseSVN--加入

       右键--SVN提交

4、修改版本库中的文件:在新修改文件上,右键TortoiseSVN--加入

       右键--SVN提交

5、删除版本库中的文件:在要删除文件上,右键TortoiseSVN--删除 

       右键--SVN提交

五、通过ip地址访问svn

1、在VisualSVN Server Local)上右键,点击Properties

2、切换到Network选项卡,在Server name中填写你的ip

3、通过[你的ip]/svn/【你的版本库名】访问,如:192.168.11.134/svn/Repository

原文地址:https://www.cnblogs.com/jutopia/p/4515069.html