How to setup SVN?

Source: Internet
Author: User

11:43:50

How to configure SVN (provided that SVN has been installed)

1. Create a directory:

Mkdir-p ~ /Svn/2.1.J.1.1

2. Go to the newly created directory:

Cd svn/2.1.J.1.1

Run the following command:

Svnadmin create. // uses this directory as the SVN repository. After this command is executed, some directories and files will be generated under the 2.1.J.1.1 directory.

3. Go to the conf directory and configure the three files:

  [/ * =    david = 123456 aaa = 654321    password-db = authz-db = realm = 2.1.J.1.1 

4. Return to the svn directory and execute:

svnserve -d -r .

  

Sometimes an error occurs when executing this sentence, as shown below:

 010@david:~/tools/svn$ svnserve -d - svnserve: E000098: Can't bind server socket: Address already in use

This error indicates that svnserve-d-r. has been executed. Do not execute it repeatedly. If you must execute it again, first kill the svnserve process and execute the following command:

Ps-aux | grep svn

Kill-9 pid

5. Go to the 2.1.J.1.1 directory, import the code to be managed, and execute:

svn import Source code path-m"New base line" --username=david --password=123456 svn:// Host name or IP address/2.1.J.1.1 -- no-ignore

  

6. Download the Code:

Svn cosvn:// Host name or IP address/2.1.J.1.1-- Username, david -- password 123456

========================================================== ======================================

The above is a very simple SNV setting, which is not designed for permission control and group control. In fact, you can implement more complex and fine-grained control by changing the three files in the conf directory. For more details, refer:

Http://www.cnblogs.com/ximu/articles/2119136.html

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.