Simple Steps for installing and configuring SubVersion in Windows

Source: Internet
Author: User
Tags server installation and configuration svn update tortoisesvn

Simple Steps for installing and configuring SubVersion in Windows

[Installation programs and documentation]

Svn-1.4.0-setup.exe

: Subversion server 1.4.0 installation program;

SubService.rar: A Windows auxiliary tool for SubServe;

TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi: A Windows Resource Manager integrated client tool is recommended.

TortoiseSVN-nightly-1.4.0-zh-CN.CHM: Instructions for use of TortoiseSVN client tools.

Svn-book-cn.pdf: Chinese version of SubVersion user manual.

 

[Server installation and configuration steps]

1. UseSvn-1.4.0-setup.exeInstall the server program;

2. Extract subservice.exe from subservice.rarto [SubVersionInstallation path] "Bin directory;

3. Specify the root directory of the SVN service version Library (all later version files will be stored in this directory ):

A) Run cmd to enter the command line;

B) Execute the command to create the root directory. Assume that the directory you specified is: d: "SvnVob:

SVNService-install-d-r d: "SvnVob

4. Start the SVN service: Open "Administrative Tools"-"services", find the SVNService service, set the Startup Type to "automatic", and start the service;

After the Server installation and configuration are complete, create the project version library.

 

[Build a version library on the server]

5. Create a temporary directory and put all the project files into the directory. After the directory is created, the following is an example of the General Directory structure:

E: "Temp ### the temporary directory you created. You can delete it after the version library is created.

├ ── MyProject1 ### your first project directory.

Branch-Branches ### recommended branch directory.

─ ── Tags ### recommended label directory.

Required-Trunk ### main branch directory, where all project files of the initial version are stored.

─ ── 01Doc ### create your own project directory as needed.

2017-02 Source

2017-03 Release

─ ──...

└ ── MyProject2 ### your second project directory.

├ ── Branches

─ ── Tags

─ ── Trunk

─ ──...

─ ──... ### Other project directories.

6. Use the TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi to install the client program;

7. Create a version Library:

A) create a project directory (for example, MyProject1) under the root directory of your SVN service version Library (for example, D: "SvnVob), and The created path is D: "SvnVob" MyProject1

B) In the resource manager, right-click the "MyProject1" directory and choose "TortoiseSvn"-"Create Repository Here" to Create a version library. (select dbd database)

Note: The MyProject1 directory must be empty; otherwise, creation cannot be successful.

C) if it is successfully created, the Conf, dav, db, and other directories and readme and format files will be automatically created under the MyProject1 directory:

8. Import the temporary file to the created version Library:

A) In the resource manager, select the "MyProject1" temporary project directory created in step 1 (for example, E: "Temp" MyProject1), right-click the "TortoiseSvn"-"Import" sub-menu;

B) In the Import dialog box that appears, select "svn ://[Server IP AddressAddress]/MyProject1 ", and then click" OK ". In the subsequent dialog box, information about the files and directories added one by one is displayed, and" Completed At Version 1 "is displayed in the last one ".

9. Configure the version Library:

A) locate the D: "SvnVob" MyProject1 "Confg directory and perform related configuration;

B) edit the svnserve. conf file first (if http: and/or file: URLs is used, you do not need to modify the file). The key is three lines:

Line 12: remove the comment and change it to the top level, indicating that anonymous access is not allowed.

Anon-access = none

Line 13: remove the comment and change it to the top level to allow authorized write access.

Auth-access = write

Line 18: remove the comment and change it to the top level, indicating that the passwd configuration file is used to set the user name and password.

Password-db = passwd

Line 25: remove the comment and change it to the top level, indicating that the authz configuration file is used to set the permission group management.

Authz-db = authz

C) edit the passwd file and configure the user name and password, for example:

[Users]

Sa = admin

Aaa = aaa

Bbb = bbb

D) edit the authz file and configure the permission group, for example:

[Groups]

Manager = sa

Developer = aaa, bbb

[/]

@ Manager = rw

Aaa = rw

Bbb = r

[/: 01Doc]

@ Manager = rw

Aaa = rw

Bbb = r

...

10. Perform the CheckOut operation on the test database:

A) In resource manager, right-click your working directory, such as "E:" MyProject1 ", and choose" Svn CheckOut;

B) In the pop-up CheckOut dialog box, select "svn ://[Server IP AddressAddress]/MyProject1 ", and then click OK. In the subsequent dialog box, information about the files and directories added one by one is displayed, and" Completed At Version 1 "is displayed in the last one ".

If you can checkout, the configuration of the entire database is complete.

 

The preceding steps are to configure and test the client operations on the server. The following describes how to perform the CheckOut, Commit, and Update operations on another machine.

[Client installation and configuration steps]

1. Use the TortoiseSVN-1.4.0.7501-win32-svn-1.4.0.msi to install the client program;

2. In resource manager, select your working directory, for example, "E:" MyProject1 ". Right-click the Svn CheckOut menu;

3. In the pop-up CheckOut dialog box, select svn: // [as the url ://[Server IP AddressAddress]/MyProject1 ";

4. in the prompt user name and password dialog box, enter the user name and password configured by the server, and click OK. The following dialog box displays the files and directories added one by one, the last line shows "Completed At Version 1 ".

If it succeeds, you can see the corresponding code file in the local E: "MyProject1 directory. Select a file or directory to perform "SVN Update" (Update version from the server) and "Svn Commit" (submit changes to the server) operations.

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.