Linux Environment installs SVN and manages multiple repositories differentiated

Source: Internet
Author: User
Tags svn

There are a lot of files about SVN that have been windows for example, because the company did not have Windows server after a day of twists and turns finally the initial installation to learn about SVN. Some of the following experiences hope to help newbies

This article uses the Yum installation (simple and fast without the necessary source code)

1. Yum Install Subversion

2. Monitor whether the installation is successful Svnserve--version

3. Create the Code library code you want to build: svnadmin Create + Path

4, in the corresponding path will generate the following several files

5, this generates a code base, about the user password and permission settings all under Conf, first modify the configuration file svnserve.conf Remove the comments and modify as shown.

6, modify the passwd file in the inside add user = password (example Zhangsan = Lisi) and go to Authz under Add User or group permissions under "groups" can add group format admin= User 1, User 2 at the end need to add directory under the user and group permissions R is read view, W for write Modify permission instances such as

That is, liming and Zhangsan have read and write access to the library * = Other users are not visible * = R is visible to other users but cannot be modified.

7. Start the SVN command svn-d-r + path For example I made two libraries/svn/repos1 and/SVN/REPOS2 (the configuration is all done) then I can svn-d-r/svn to boot. The SVN://IP/REPOS1 or SVN://IP/REPOS2 is used to connect the two libraries when the win is connected. The user's account number and password are the settings of the previous article.

8, conf all the configuration files are set to complete, pay attention to the code freeze, or error. After the Library directory setup is complete, you can further set up the Code management Catalog code for the SVN checkout svn://ip/Library Directory code management directory--username user--password password--no-auth-cache

The library directory itself can be used as the Code management directory. By doing this you can try uploading the update files. The more detailed use of SVN functionality is not to be added.

Linux Environment installs SVN and manages multiple repositories differentiated

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.