SVN server installation using the detailed tutorial

Source: Internet
Author: User
Tags svn client server port tortoisesvn

First, Introduction

I have tried to search the internet on the SVN source code server construction of Chinese technical articles, unfortunately, the found, either is incomplete, or is not helpful to the author of the article, TortoiseSVN's help document is powerful, but because it is English, not very suitable to use as a beginner After all, TortoiseSVN is a client, and server-side configuration is also important.

A year ago, I just graduated from the beginning of the company, in the development, because there is no software code version management, resulting in the result is

    • Software one version of the day
    • Bugs are increasing and hiding deep
    • Code cannot backtrack forward
    • Bugs that were fixed a few months ago are re-emerging in a few months.
    • ......

Because recently the company decided to set up the SVN source code server, to solve the above problems, so the author after a period of groping and use, there is this article.

Second, learn the prerequisites for this article

This article can help you a lot if you are a reader of the following situations:

    • Basic knowledge of software development
    • Understanding the Client/server Model
    • is being plagued by an increasingly updated version of the software code

This article is intended to guide readers how to use the existing software tools for software code version management, if you are interested in software versioning and management, maintenance and backup, you can read this article to obtain some knowledge.

Third, install SVN server-side software

First of all, you have to download two packages: VISUALSVN server and TORTOISESVN, both are open source software, as to where to download, Baidu or Google, try to use the latest version is good, I use the following version:

Server side: Visualsvn-server-2.5.5.msi

Client: Tortoisesvn-1.7.5.22551-win32-svn-1.7.3.msi

Double-click the label to open the installation package:

Click "Next"

Tick "I Accept ..." and click "Next"

Select the first "Install VISUALSVN Server (Visual SVN server)" and "Management Console"

Location is your installation directory, C or D drive can, repositories is your source code warehouse, that is, you SVN to help you manage the placement of code, here I choose to place in the D packing directory, the "Use Secure connection" check box to remove the tick, Then fill in the Server port 8080 (fill in the other port number can also, but ensure that the port number is not occupied), where the reason for not using a secure connection is that it will cause communication slow (PS: At that time in the company configuration used by the secure connection, Each time checkout takes 15 seconds more time, unbearable), and then click "Next":

Click "Install"

Wait......

finish!

When you click Finish, the VisualSVN Server is started and you can see that its status is:

VISUALSVN Server is running

Server URL is http://motor-109133.hanslaser.com:8080/svn/

At this point, the server-side software installation is complete!

Iv. SVN server Configuration Items

Right-click on "Repositories" and select "Create New Repository ..."

In the text box under "Repository Name", fill in "Testsvn" (as a test), tick the "Create default structure (trunk,branches,tags)" option, click OK

As you can see under the repositories tree, there is a TESTSVN library with three folders in the TESTSVN library:

    • Branches (branch, branch code that modifies special features or features, which can be combined with a trunk)
    • tags (tag, set milestone version)
    • Trunk (trunk, which holds the code project currently being edited)

Start new User (user group management please yourselves), right click on "Users" and select "Create user ..."

In the Create New User dialog box, fill in the account password:

You can see a user under the Users folder:

Remember to modify the properties of the repositories warehouse because its default property is everyone read/write, which means that anyone can read and write to the contents of the library, and now we want to modify it to everyone No Access, and then add the user yourself , give the user the ability to read or write, right-click on "Repositories" and select "Properties":

Check "Everyone" and Tick "No Access":

Now start adding a user to TESTSVN, which is the account you just added: Zhengshuo, right-click on "Testsvn" and select "Properties ...":

Click "Add ...", select the Zhengshuo under Users, click OK

The user Zhengshuo is then added to the TESTSVN project (that is, only Zhengshuo has read and write rights to TESTSVN):

installation of SVN client software

Double-click the following installation package:

Click "Next"

Select "I Accept ..." and click "Next"

Select the installation directory and click "Next":

Start Install:

Wait ...

Installation is complete!

Vi. Check out the project code from the SVN server

Create a folder in any location testsvn, such as D, right-click the folder, select "SVN Checkout ..."

fill in the "URL of Repository" format is http://Your computer's IP address £ 8080/svn/testsvn , the port number is the previously set 8080,IP address fill in your current computer's IP address, and then click OK:

SVN will prompt to enter the account password to verify, because Zhengshuo this account has been added to the server, so you can use the account to log in:

After validation is successful, you will be prompted "Checkout finished! ”:

Vii. Check in the project code to the SVN server

The first checkout obtains the directory structure in the current project TESTSVN, which is branches,tags and trunk:

Our code is placed in the trunk (trunk) folder with the following code:

Right-click the Testsvn folder and select "SVN Commit ..."

Fill in the Upload reason message, click OK

Tip "Commit finished! ”

Eight, PostScript

The content of this article is relatively simple, but it gives beginners a best entry point, so that beginners can in the shortest possible time, the SVN source code server construction and preliminary use of a comprehensive understanding.

SVN source through the construction of the server, but also let me understand the importance of software code version management, is the so-called gentleman good Fake in the material also, we as a qualified software engineer, to be good at the rational use of all around the resources available to optimize our work environment, improve efficiency, Write the perfect software for your company with fewer bugs. (End of full text)

SVN server installation using the detailed tutorial

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.