Linux Server Configuration--Build SVN server

Source: Internet
Author: User
Tags svn client

1, install SVN server

Install subversion directly with Apt-get or Yum (you can, of course, go to the official download installation yourself)

sudo apt-get install subversion

2, create a version library

Svnadmin Create/home/myrepos    //Here's the file directory set yourself casually


3, Configuration Svnserve

When the above repository/home/myrepos is established, the Conf folder will be generated under the folder and the following 3 files will be entered under/home/myrepos/conf.

Authz passwd svnserve.conf

We'll change it in turn

3.1,svnserve.conf Modify the following sections:

anon-access = readauth-access = writepassword-db = Passwdauthz-db = Authz

3.2,passwd modified to:

[users]username = password    //here username and password set themselves

3.3,authz finally add the following two lines (these two lines resolve the SVN client to solve the authorization failed problem)

[\]* = RW  

4, start Svnserve:

Svnserve-d-r/home/myrepos/


5, the client uses:

Client with SVN or TORTOISESVN client under Windows

5.1, from the Server checkout repository (under current directory)

SVN checkout svn://Server IP address/

5.2, add some files yourself, or copy the previous items (such as the following three folders) to the current directory, to let SVN help you manage
Code Project Document
5.3, suppose I put the above three folders in the current SVN folder to get SVN to manage, and then I'm going to add to the SVN repository:

SVN add code Project document    //or directly with SVN add *

5.4, last submitted to SVN server

SVN commit-m ' Import three directories '
Be sure to write a comment on the current version.

Linux Server Configuration--Build SVN server

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.