Install and configure the SVN server and client TortoiseSVN on windows

Source: Internet
Author: User
Tags svn update tortoisesvn

(1) svn Installation

1. Download Software: Setup-Subversion-1.7.5.msi, installation is very easy, all the way to NEXT

2. Add the bin folder path of SVN to the environment variable.

Add the bin path (D: \ Program \ Subversion \ bin) in the svn installation directory to the environment variable.

In the command line window (open in cmd), enter svn-version. if the version information is displayed, the installation is successful.

(2)Server Creation

1. Create a root directory to store all svn factory information (each factory is equivalent to a project)

2. Start svnSvnserve-d-r E:/svn/root

C: \ Users \ huangyineng> SC create SVNServer binPath = "D: \ Program \ Subversion \ bin \ svnserve -- service-r E:/svn/root"

Note:

1. binPath = there must be a space behind it

2. After the service is started, the svn port is 3690

Active connection

Protocol local address external address status

TCP 0.0.0.0: 135 0.0.0.0: 0 LISTENING

TCP 0.0.0.0: 445 0.0.0.0: 0 LISTENING

TCP 0.0.0.0: 3306 0.0.0.0: 0 LISTENING

TCP 0.0.0.0: 3690 0.0.0.0: 0 LISTENING

(3)Download and install TortoiseSVN

TortoiseSVN is a free open source client for the Subversion version Version Control System, now the latest version is 1.7.7,: http://tortoisesvn.net/downloads.html

My downloaded file is TortoiseSVN-1.7.7.22907-win32-svn-1.7.5.msi

NEXT is the installation method. It is relatively simple and will not be introduced here. After the installation is complete, right-click it. If it is displayed, the installation is successful.

(4)Development Process

(4.1)Configuration Management Personnel

1. Create a factory

C: \ Users \ huangyineng> svnadmin create e:/svn/root/student

2. Configure permissions

The permission control file is in the E: \ svn \ root \ student \ conf directory.

A) Modify svnserve. conf to enable permissions.

Remove the comments (#) before # anon-access = read, # auth-access = write, # password-db = passwd, # authz-db = authz, change anon-access = read to anon-access = none.

Anon-access = none indicates anonymous users do not need to access

Auth-access = write indicates that the user is authorized to read

Password-db = passwd indicates that the password of the authorized user is recorded in the passwd file.

Authz-db = authz indicates that the information of the authorized user is recorded in the authz file.

B) modify passwd and Add User Password

[Users]

Huangyineng= 123456

Naxsu = 123

C) Modify authz configuration Permissions

[Aliases]

[Groups]

G_admin = huangyineng

G_dev = huangyineng, naxsu

[/]

Huangyineng = rw

Naxsu = r

Note: aliases does not set an alias for the user here; groups sets a group, where the Administrator group and Development Group are set; [/] sets the permissions of the user under the root directory, of course, you can set any subdirectory in the root directory.

3. The project manager creates a project and submits it to the svn factory.

A) install plug-ins in TortoiseSVN-1.7.6 or Eclipse

B) Import the project to the SVN factory and right-click the project --> TortoiseSVN --> Import ..." -->

Enter the project path (svn: // localhost/student) and develop a good habit of writing remarks.

À prompt for identity authentication. Enter the user name and password (use the authorized user)

The above process completes the import.

(4.2)Developers

A) Go to the directory where you want to store the project, and right-click it --> SVN Checkout ..."

B) after modification, right-click and choose "SVN Update"> "SVN Commit"

Note:

To avoid modification by others, Update

If a version conflict occurs, you can only manually check and merge the version, delete the conflicting file, and then submit the file.

When assigning tasks, the project manager must consider them independently (assign different modules to different developers for development, so as to avoid conflicts as much as possible)

C) Other developers can update svn repository information through --> update

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.