Deployment under SVN Server Windows

Source: Internet
Author: User
Tags svn tortoisesvn

1. Download svn Server; add svn sever installation directory \ Bin directory to path directory, My Computer-"properties-" advanced-"environment variable-" path

2. Client Installation tortorise SVN

3. Set up SVN repository, is the project code warehouse, all subsequent synchronization of the code on the server stored in this warehouse

Two ways:

1 on the server side start-> run input cmd-> svnadmin create E:\svndemo\repository

This path is the path to the software warehouse on your server.

2 use TORTOISESVN, in the directory E:\svndemo\repository "right button->tortoisesvn->createrepositoryhere ..."


4. SVN User access permission configuration

The simplest permission configuration, into the Software warehouse (E:\svndemo\repository), into the Conf directory svnserve.conf:

[General]
### These options control access to the repository for unauthenticated
### and Authenticated users. Valid values are "write", "read",
### and "None". The sample settings below are the defaults.
Anon-access = Read
anon-access = Write

5. Add SVN Server to service

Note the following is the Windows cmd command, the command parameters have spaces, pay attention to the space, especially sc create "=" after the space.


To create a service:

SC create "SVND" binpath= "\" "C:\Program files\subversion\bin\svnserve.exe\"--service--root E:\svndemo\repository " start= demand Displayname= "Svndserver"

The directory after REM--root is the software warehouse path in the server

Remove the service

SC Delete "SVND"

Start the service
sc start "SVND"

Stop the Service
sc stop "SVND"

6. Use TortoiseSVN to upload code to svnserver, download code, update code operation

Use TORTOISESVN on the server:

Update to latest code: Enter a file, right-click a blank place, select SVN Checkout, click OK in the URL of Repository input svn://localhost/, OK.

Upload code: Add a file to the directory, right-click a blank place, select SVN Commit, hook up all the code you want to upload, and click OK.


When you do this on the client machine, change the svn://localhost/to svn://ip/




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.