"IOS" Mac under SVN's server Setup

Source: Internet
Author: User
Tags cos

In collaborative development, versioning is a must. Completely dare not imagine the team are using a U disk, QQ management code scene. But SVN is not like git, with a lot of free code libraries, it is necessary to build the SVN server to synchronize the code under the same LAN. This article will explain in detail how to use the Mac to build the SVN server (Windows Building is not speaking, there is a GUI).

Environmental information:

Mac OS X 10.10.1

Body

1. Create a code base

Mac has become SVN, so it doesn't need to be downloaded. Open Terminal input

create /Users/apple/svn/mycode

Where svnadmin Create is the command;?/USERS/APPLE/SVN is the warehouse path; Mycode is the warehouse name (typically the project name).

After a successful creation, you can find the Mycode warehouse under the/USERS/APPLE/SVN path.

2. SVN User Rights configuration

The files that need to be modified areunder/users/apple/svn/mycode/conf.

2.1 Modifying the basic configuration

Open the svnserve.conf file with text and remove the #与 space before the configuration of anon-access = read, auth-access = write, password-db = passwd, authz-db = Authz four items .

SVN Server Basic Configuration

Anon-access = read indicates that anonymous access is read-only and anon-access = none does not allow anonymous access. Allow anonymous access cannot view timeline, so I generally do not allow anonymous access.

2.2 Add user name password

Open the passwd file with text and add the user name and password you want to add under [users] in the format username = password specific configuration

User information configuration (user name = password)

2.3 Configuring user groups and Permissions

If users have multiple roles, they can be assigned to different groups of users, restricting user access by giving different permissions to the user group.

First, group the users, and then add permissions to the group. (use [/] to represent all of SVN's resources)

Create user groups, assign permissions

3. Start the SVN server

Enter in the terminal

svnserve -d -r /Users/apple/svn

or (there are multiple warehouses in SVN and only need to start a warehouse)

svnserve -d -r /Users/apple/svn/mycode

If the error message does not appear, the startup succeeds. If an error occurs, check that the parameters in step 2 are configured correctly.

4. Close the SVN server

In the activity Monitor of your Mac, search for SVN to see the SVN process. You can kill directly.

Shutting down the SVN server process

5. Initializing the Warehouse
svn import /Users/apple/Documents/projectName ?svn://localhost/svn/mycode --username=tjr? --password=123 -m "初始化导入"

"IOS" Mac under SVN's server Setup

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.