SVN Server & Client building and use

Source: Internet
Author: User
Tags svn client version control system tortoisesvn

Directory structure:

1. SVN server build and use-visualsvnserver

2. SVN client Installation and use-TORTOISESVN

3. How to use TortoiseSVN

About SVN

SVN is the abbreviation for Subversion, is an open source version control system, compared to RCS, CVS, it uses the branch management system, its design goal is to replace CVS. Many version control services on the Internet have migrated from CVs to subversion. It's easy to say. SVN is used to co-develop the same project for many people, the purpose of sharing resources


One: SVN server build and use.

1. Download and build the SVN server and add the repository

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

After entering the URL, you can see the following at the bottom of the browser:

Click on the VISUALSVN connection above to download VISUALSVN server after the installation is complete, start VISUALSVN server Manager:

Now start creating the Repository Rong, right-click on the Repositores of the window, such as:

In the popup context menu, choose Create New repository or create new repository:

After the Create Default structure check box is ticked, 3 folders are automatically created in the Rong directory,branches,tags,trunk:

three catalogs first knowledge :

Trunk Directory

The skeleton directory, under normal circumstances, is the development of code in this directory, which should contain the latest code. In practice I developed the development branch in branches and then merged the latest code into this directory.

Tags directory

Code version tag, the code of this directory does not allow changes, for example, the software issued 1.0 version, you need to 1.0 version of the code in tags to put a copy, sent 2.0, you will tag a 2.0. If the 1.0 software bugs, developers to verify the bug, directly from the tag to take the 1.0 version of the code, will not confuse each version.

Branches Directory

Branch directories, which are used to develop new features or resolve older versions of bugs. For example, 1.0 version on-line, developers to devote to 2.0 version of the development, but 1.0 version of the sudden emergence of a bug must be fixed, and very urgent, can not wait until the 2.0 version of the line, this time what to do. The correct approach is to take the 1.0 version of the code from the tag, create a new branch, the developer on this branch to solve the 1.0 found bug, solve the completion and test pass, add a new version tag in the tag, such as 1.1, and then close the branch. If the 1.1 bug occurs again, the branch is established from 1.1, and so on until the 2.0 appears.

2. Users and groups need to be established, and permissions need to be assigned.

A. Create user, right-click Users on the left side of the VisualSVN Server Manager window, 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 dialog box that pops up, select the Security tab, click the Add button, select the specified user group or user, and then add the permission set to Read/write, where we do not use user groups to specify users directly, such as:

after setting permissions, only the specified group or specified user has read and write permissions to the project, and only test has read and write access to Rong . In the actual use of the group and users can be flexible use, you can assign the project to the corresponding user can also specify the appropriate group.
Here SVN server has been built, we download and install to add Repository Rong=>trunk,branches,tags directory

Two: SVN client installation and use

1. Download TortoiseSVN for installation

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

The following is my download of SVN related installation package, can be public number Codel message get:

The above visualsvn is very useful, VISUALSVN is the SVN client, and Visual Studio integration, after installation in VS can be implemented in the commit, update and other operations, such as.

Continue back to the SVN client installation, and after the installation is complete, right-click to see the following:

2:checkout the project file. in a native directory, right-click SVN Checkout (Checkout):

Where the URL can be obtained in the SVN server, in the Rong directory right-click

Paste the copied repository URL, such as:

Click "OK" button, you can retrieve the check out when prompted to enter the user name and password, is created on the Server user username and password.
Here svn from the server to the client's build has been completed, and we have to check out the version of the library to this machine, the rest is to learn the relevant use of TORTOISESVN

Three: TortoiseSVN use method
, the red rectangles are marked with some of the more common commands

    1. Update indicates updates, default updates to the latest version on SVN server
    2. Commit commit operation, commit the modification to the file
    3. Resolve resolved for handling conflicts
    4. Revert restore, undo changes to the file (only uncommitted modifications can be undone)
    5. Clean up cleanup operation for handling locked cases
    6. Merge merging
    7. Add, files not added to version control will have a question mark by default and can be added to version control via add


Here is only a general description, the specific use of practical multi-practice operation, if you do not bother to download, you can also send a message in the public number Codel.

The use of SVN in these articles is very detailed:

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

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

SVN Server & Client building and use

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.