Svn安装和使用教程

Svn安装和使用教程
Svn安装和使用教程

Svn安装和使用教程

作者:王焱亮单位:vwintech

安装svn1.43service到服务器

首先需要安装svn的安装程序,然后创建svn服务。

用windows命令创建svn服务并设为自动:

所在目录名。

安装svn1.43client到客户端

安装svn的客户端程序,需要的话还可以安装svn的语言包,注意语言包的版本也必须与客户端程序的版本一致

在MyEclipse中下载并安装svn插件

首先点击MyEclipse的菜单:

help→Software Update→Find And Install,如下图

进入如下页面:

选择下边的单选钮,点击next按钮,出现如下页面:

选择Subclipse update site 然后点击finish按钮。

注:没有的创建一个地址为:https://www.360docs.net/doc/719367291.html,/update_1.2.x 的更新,名称随意起。

进入下面的页窗口:

按上图所示的方式选择,然后点击下一步。

如上图,选择同意然后点击下一步

如上图,点击finash就开始自动下载并安装了,安装完成后会要求eclipse重启。

在Eclipse中检出项目

现在Eclipse中已经有了svn的插件了,我们现在可以直接通过Eclipse检出局域网中任何一台机器上的svn服务中的项目。

首先,new一个新项目,在项目类别中选择“从svn中检出项目”,如下图:

点击next按钮,进入资源库位置的选择或新建页面:

可以选择一个已有的资源库位置,或者创建一个新的。现以创建新的资源库为例,如下:

在url栏中输入已建好的svn服务的地址,如上图的svn://192.168.1.41/pj1,格式一定要正确。完成后点击next,如果能找到给定的地址会出现下面的画面:

然后继续点击next:

如上图,选择“做为工作空间中的项目检出”,并随便输入一个项目名称,点击next:

如上图,是设置项目将要检出到的本地位置,可以直接放到eclipse的工作目录或者另外找一个新的目录。然后点击finish完成检出。

创建版本库

1、创建版本库

内部目录结构:

对‘..\conf ’目录下的三个文件进行修改

authz文件

### This file is an example authorization file for svnserve.

### Its format is identical to that of mod_authz_svn authorization

### files.

### As shown below each section defines authorizations for the path and ### (optional) repository specified by the section name.

### The authorizations follow. An authorization line can refer to a

### single user, to a group of users defined in a special [groups]

### section, or to anyone using the '*' wildcard. Each definition can

### grant read ('r') access, read-write ('rw') access, or no access

### ('').

[groups]

# harry_and_sally = harry,sally

eam=wyl,johnson.wang//组,及其包含的用户

# [/foo/bar]

# harry = rw

# * =

# [repository:/baz/fuz]

# @harry_and_sally = rw

# * = r

@eam=rw//组的权限

#后为注释

svnserve文件照此样

# anon-access = read

# auth-access = write

### The password-db option controls the location of the password

### database file. Unless you specify a path starting with a /,

### the file's location is relative to the conf directory.

### Uncomment the line below to use the default password file.

# password-db = passwd

### The authz-db option controls the location of the authorization

### rules for path-based access control. Unless you specify a path

### starting with a /, the file's location is relative to the conf

### directory. If you don't specify an authz-db, no path-based access

### control is done.

### Uncomment the line below to use the default authorization file. authz-db = authz

### This option specifies the authentication realm of the repository.

### If two repositories have the same authentication realm, they should ### have the same password database, and vice versa. The default realm ### is repository's uuid.

# realm = My First Repository

导入工程目录时,选择“导入”后,输入svn地址即可,如下图:

相关主题
相关文档
最新文档