Configure SVN (subversion) in Windows

Source: Internet
Author: User
Tags svn client tortoisesvn

Configure SVN (subversion) in Windows)

In the field of software engineering version control, SVN has gradually replaced cvs. Today, the configuration of SVN is not clear because of some details. Therefore, Baidu has discovered many people who have said that there are omissions or errors in the configuration process, so I record it with a few bits-it's absolutely enough, so that even if you have never used similar software, you can achieve a successful configuration.

(Snowman Note: Only common LAN usage is considered here, So SSH is not used .)

Download svn-related software:
1. SVN Win32 version: http://subversion.tigris.org/servlets/ProjectDocumentList? Folderid = 91

2. svnservice: http://dark.clansoft.dk /~ MBN/svnservice/

3. tortoisesvn and simplified Chinese Language installation package: http://tortoisesvn.tigris.org/download.html

Set up the svn Server:

1. Decompress SVN to a directory, such as c: \ SVN

2. decompress the svnservice compressed package and put svnservice.exe into C: \ SVN \ bin

3. after installing tortoisesvn, you will be prompted to restart the computer. After restarting the computer, you will be prompted to install the Simplified Chinese Language Pack. Then, right-click a directory and you will find some svn-related menus, select tortoisesvn, and then select the sub-menu "Settings" to set the language to "Chinese (simplified )"

4. open "my computer" and create a directory for storing SVN information, such as c: \ svnhome. Then, return to drive C, right-click the svnhome directory, and select tortoisesvn from the menu that appears, select the sub-menu "Create File library here" and select the fsfs mode (snowman Note: Selecting create file library here is actually equivalent to making tortoisesvn replace you with svnadmin create C: \ svnhome)

5. in the DOS console, run cd c: \ SVN \ bin and then svnservice-install-d-r C: \ svnhome and then Net start svnservice to run it as a service, we recommend that you go to Control Panel> Administrative Tools> services to find svnservice, right-click and select "properties", and set its Startup type to "automatic"

6. open c: \ svnhome, and you will find that there are more directories and files, open the conf subdirectory, and open svnserve. CONF file. All the lines in front of this line are ignored by comments. You can remove # To make the line take effect, or add new lines by yourself. the English comments in the preceding Section have detailed the meanings of various settings. Finally, if you set the [general] section, the content without # before the bank of china is as follows:

Anon-access = none
Auth-access = write
Password-DB = passwd

Meaning:

Unauthenticated users do not have any permissions (if none is changed to read, read permission is granted)
The authenticated user can grant the write permission (of course, the user can also read)
Password data is stored in the passwd file

Then open the passwd file in the same directory to set the account:

Similarly, set the content without the # sign before the row in the [users] section, for example:

Snowman = ABC123

Meaning:

Your snowman password is ABC123.

6. open "my computer", right-click the directory for version control, select tortoisesvn, and then select Sub-menu "import... ", set" file library URL "to SVN: // After localhost is determined, the system will prompt that the file is being imported. (snowman Note: The SVN file library and SVN service are the same computer, so localhost is available. If other machines want to access the svn service, SVN should be used: // SVN Server IP address, for example, SVN: // 10.0.0.52)

So far, SVN server configuration is complete

Client Configuration:

1. If tortoisesvn is not installed on a computer, first install it and restart the computer)

2. create a directory to store the version control project, such as D: \ project. Right-click this directory in "My Computer" and select "SVN fetch... ", set" file library URL "to SVN: // the IP address of the svn server. Next, you will be asked about your username and account, and you will fill in the user snowman password ABC123 set on the server.

(For the file library URL, refer to the annotations in step 1 on the server side)

After clicking OK, the system will prompt that the file is being retrieved to D: \ project.

Now, the svn client configuration is complete, and you will see that D: \ Project and the following files are marked with a green check mark.

Simple daily use of the client:

1. To obtain the latest project version, right-click D: \ Project and select "SVN Update"

2. after you change the project, update your changes to SVN, right-click D: \ Project, and select "SVN submit". (If you are careful, update the project to the latest SVN version before submitting it)

 

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.