SVN version control "document Management"

Source: Internet
Author: User
Tags tortoisesvn

1. Software download
Server
Http://sourceforge.net/projects/win32svn/files/?source=navbar
Client
Http://tortoisesvn.net/downloads.html


2. Installation of servers and clients
Server Installation
Step one: Double-click Server Software, click Next

Step Two: Point next

Step Three: Point next



Step Four: Click Install









Step five: Click Finish, the server installation is complete



Client Installation
Step One: First determine whether the server is 32-bit or 64-bit, and then find the appropriate software, double-click the client software

Step two: Select "I accept the terms in the License agreement", then click Next

Step three: In the red position, click the left arrow to select "'ll be installed on the local hard drive", and then point to next



Step Four:

Step five: Click Finish to complete the client installation



3. Build services and root directory creation
Build the SVN root directory: For example, set up folder Svnroot on the D disk.


And then build the SVN service.
Step one: Open run, input cmd, point OK

Step two: can be typed at the command line, you can also copy and paste to the command line, SC create Svnservice binpath= "\"C:\Program files\subversion\bin\svnserve.exe\ "--service--root \"D:\SVNRoot\"" Depend= Tcpip start= Auto, then click Enter
(The first red part is the installation location of subversion, the second red is the SVN root you just created, note: there must be no space before the equals sign in the command line, and a space after the equals sign)



Step three: appear this, stating that the service is successful, then click on the management tool to find the service, open Windows Service window check, find svnservice this service, initial establishment may want to manually start under, double-click Svnservice This service, the dialog box appears to start, then click OK, The service is up.








4, the establishment and configuration of specific projects.
This assumes that we have a project demoproject need to be managed with SVN.
Create a new folder Demoproject under D:\SVNRoot. Enter the Demoproject, click the mouse in the blank right button, select TortoiseSVN, and then select Create Repository here, and then the dialog box appears click OK. After the operation, you can see that there are more files and folders in the empty folder.
Now you can test whether the above steps are correct, create Demoproject (the folder when developing the project) in F disk, go to the newly created folder, right click in the blank, choose SVN checkout,url repository fill in svn://localhost/ Demoproject, other default. Click OK, (if the window action has a display completed, that means the operation succeeded, for example).



This can be accessed, but it is not done, we need to configure the file read and write permissions. Then we entered the D:\SVNRoot\DemoProject\conf.
There are three of files in it. By default, almost all of the code is used # comments.


Next, modify these three files to configure SVN authentication and authorization. (Please distinguish between authentication and authorization)
The first is the svnserve.conf file:
# anon-access = Read change this line to anon-access = none, which means that anonymous access is forbidden (note: there must be no spaces in front of the anon)
# auth-access = Write Remove the comment # from the front of the line and delete the space to indicate that the authenticated user has read and write access
# password-db = passwd Remove the comment # number in front of the line and delete the space to indicate that the user is using the passwd file.
# authz-db = Authz Remove the comment # from the front of the line and delete the space, indicating authorization to use the Authz file.
# realm = My first repository remove the comment # number in front of this line and delete the space


Then modify the passwd file, part of the file content:
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
Here is the username and password to configure SVN, where Harry is the username, the sign is followed by the user password, and Sally is another user. Of course, both lines of code are commented. You can delete comments to enable them, or you can add a line yourself, for example:
Test = 123456


Last Configuration Authz

The first attribute node is aliases, an alias, not knowing where the action is, and an estimate is to combine many users of the same permissions into a single name. I haven't made any changes here.
The second attribute node groups, group, which is well understood, is to merge users with the same permissions into a group so that the following configuration is more concise.
The following attribute nodes are directory authorization nodes.
[/foo/bar] means the following settings are granted under the/foo/bar directory. The following authorization formats are: User name | Group name = RW | R,R is the abbreviation for read, which indicates that there is reading permission, and W is the write abbreviation, which indicates writable permission, and RW indicates readable and writable.
If you configure using [/] in the root directory, you can do so.
Both [/] and [demoproject:/] both represent the root directory, both of which can represent


After the configuration is completed, enter F:/demoproject again, in the blank right mouse button, select Svnupdate, then a pop-up window asks us to enter a user name and password, enter the user name and password configured in the passwd file can be accessed.
The configuration of such a project is complete. Then you can use it.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

SVN version control "document Management"

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.