SVN Server & amp; client creation and use, svn Server Download

Source: Internet
Author: User
Tags svn client tortoisesvn

Build and use SVN servers and clients, and download them from svn servers

 

Directory structure:

1. Create and use the SVN server-VisualSVNServer

2. install and use the SVN client-TortoiseSVN

3. TortoiseSVN usage

 

SVN Introduction

 

SVN is short for Subversion. It is an open-source version control system. Compared with RCS and CVS, it adopts a branch management system. Its design goal is to replace CVS. Many version control services on the Internet have been migrated from CVS to Subversion. To put it simply, SVN is used for multiple people to develop the same project and share resources.

 


I. Build and use SVN servers.

1. Download and set up the SVN server and add the version Library

Download: http://subversion.apache.org/packages.html

After entering the URL, the bottom of the browser is shown as follows:

Click the preceding visual SVN connection to download the visual SVN server Installation and start the visual SVN Server Manager ,:

Now, create the version library Rong, right-click the Repositores in the window, for example:

In the pop-up context menu, select Create New Repository or Create a Repository:

After the Create default structure check box is checked, three folders are automatically created in the Rong directory,Branches, tags, trunk:

Three directories are first recognized:

Trunk directory

The main directory is generally used for code development under this Directory, which should store the latest code. In actual development, I create a Development Branch in branches for development, and then merge the latest code into this directory.

Tags directory

The code version mark of the Code. The Code of this directory cannot be changed. For example, if the software sends Version 1.0, You need to copy the code of version 1.0 in tags and send it to version 2.0, you need to mark a 2.0 in the tag. If a bug occurs in software 1.0, the developer must verify the bug and retrieve the code of version 1.0 from the tag without obfuscation of all versions.

Branches directory

Branch directory, used to develop new features or solve bugs in earlier versions. For example, when version 1.0 is launched, developers are fully engaged in development of version 2.0. However, a bug occurs in version 1.0 that must be fixed and urgent, what should we do at this time. The correct method is to take the code of version 1.0 from the tag and create a new branch. After the developer solves the bug detected by version 1.0 and passes the test, add a new version tag in the tag, such as 1.1, and then close the branch. If a bug occurs in 1.1 again, create a branch in 1.1, and so on until 2.0 appears.

 

2. You need to create users and groups and assign permissions.

A. Create a User. Right-click Users on the left side of the VisualSVN Server Manager window and select Create User.

B. Create a user Group, right-click Groups on the left side of the VisualSVN Server Manager window, and select Create Group ,:

Next we need to set permissions for the user, right-click on Rong, select Properties ,:

In the pop-up dialog box, select the Security tab, click the Add button, select the specified user group or user, and then Add the permission to Read/Write. Here we do not use the user group to directly specify the user, for example:

After permissions are set, only the specified group or user has the corresponding read and write permissions for this project. Here, only test has the read and write permissions for Rong.. In actual use, the group and user can be used flexibly. You can specify the corresponding user for the project or the corresponding group.
The svn server has been set up here. From downloading and installing to adding the version library Rong => trunk, branches, and tags Directories

Ii. install and use the SVN Client

1. Download TortoiseSVN for Installation 

Download: http://tortoisesvn.net/downloads.html

The following is the svn installation package I downloaded. You can leave a message with the public account CodeL:

The preceding Visual SVN is very useful. Visual SVN is the SVN client, which is integrated with Visual Studio. After installation, you can submit, update, and perform other operations in vs, for example.

Go back to the svn client for installation. Right-click the installation and you will see the following:

2: checkout project file.In a local directory, right-click Svn Checkout (check out ):

The URL can be obtained on the SVN server and right-click the Rong directory.

Paste the copied version library URL, for example:

After you click the OK button, you will be prompted to enter the user name and password, that is, the user name and password created on the server.
Now svn has been built from the server to the client, and we have checked out the version Library to the local machine. The rest is to learn how to use TortoiseSVN.

Iii. TortoiseSVN usage
, Red rectangular boxes are marked with some common commands


Here, we will only give a rough description. Please take some practical operations into consideration. If you are too reluctant to download it, you can also leave a message to you on the public account CodeL.

 

The articles about svn usage are described in detail:

Http://www.cnblogs.com/armyfai/p/3985660.html

Http://www.cnblogs.com/xiaobaihome/archive/2012/03/20/2408089.html

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.