Subversion Quick Start Tutorial (turn)

Source: Internet
Author: User
Tags svn tortoisesvn
How to quickly build a subversion server, and use it in the project, this is the most concerned about the problem, compared with CVS, Subversion has more choice, and easier, a few commands can build a server environment, you can use it, there are animated tutorials.

This article is the fastest use of Subversion tutorial, in the shortest possible time to help you build a set of available server environment, only a few adjustments can be applied to the actual project.


This tutorial is divided into the following departments, not just a quick start, finally we have some advanced features of the description, in order to illustrate the simple, the tutorial is used in Windows to facilitate the use of limited resources, for the UNIX environment, the difference is not very small.


Software downloads
Server and Client Installation

Build a version library (Repository)
Configuring Users and Permissions

Running a standalone server
Initialize Import
Basic client Operations
1, software download


Download the Subversion server program.
To the official web site download binary installation files, came to the binary package download section, find Windows NT, XP and 2003, and then select "This directory", so that we can see a lot of downloaded content, currently can be planted svn-1.2.3-se Tup.exe.


Download Subversion's Windows Client Tortoise SVN.
TortoiseSVN is a set of tools to extend the Windows shell as a plug-in for Windows Explorer, and Windows will be able to identify the working directory of Subversion after installation.
The official website is TORTOISESVN, downloaded in the same way as the previous SVN server, on the download page we chose official version for WIN2K/XP or higher, Then select the currently highest stable version of the installation file Tortoisesvn-1.2.4.4479-svn-1.2.3.msi on the SourceForge download page.


2, Server and client Installation


Server installation, directly run Svn-1.2.3-setup.exe, as prompted to install it, so we have a set of servers can run the environment.
Install TORTOISESVN, Also directly run the Tortoisesvn-1.2.4.4479-svn-1.2.3.msi as prompted to install, but the final will be prompted to reboot, in fact, the restart is only to make SVN working copy in Windows Special style, and all the actual function is irrelevant, here in order to immediately see good results, or reboot the machine.


3, build version library (Repository)

Running a subversion server requires first establishing a version library (Repository), which can be viewed as a database of data stored on the server, and can be run directly after the Subversion server is installed, such as:

Svnadmin Create E:/svndemo/repository
A version library is created under the directory e:/svndemo/repository. We can also use TORTOISESVN graphically to complete this step:
Under the directory E:/svndemo/repository "right key->tortoisesvn->create Repository here ...", then you can select the version library mode, which is used by default, and then create a series of directories and files.

4, configure Users and permissions

Come to e:/svndemo/repository/conf directory, modify svnserve.conf:

# [General]
# password-db = passwd

To

[General]
Password-db = passwd
Then modify the passwd file in the same directory and remove the comments from the following three lines:

# [Users]
# Harry = Harryssecret
# sally = Sallyssecret

Finally becomes:

[Users]
Harry = Harryssecret
Sally = Sallyssecret


5, running a standalone server

Run in any directory:

Svnserve-d-R E:/svndemo/repository
Our server program has been started.


6, initialize the import

Come to the root directory of the project we want to import, in this example E:/svndemo/initproject, there is a Readme.txt file in the directory:

Right Key->tortoisesvn->import ...
URL of repository Enter "Svn://localhost/trunk"
Ok
After the completion of the directory without any changes, if there is no error, the data has been all imported into the version of the library we just defined.


7, Basic client operation

To remove a version library to a working copy:

Come to any empty directory, in this case is E:/SVNDEMO/WC1, run the right button->checkout, enter the Svn://localhost/trunk in the URL of repository, so we get a copy of the work.

Make changes in the working copy and submit:

Open Readme.txt, make changes, and then right-click->commit ... so we submit the changes to the repository and we can run them.

To see the changes made:

Readme.txt Right->tortoisesvn->show Log so we can see all of our submissions on this file. Right-->compare with working copy on version 1, we can compare the difference between a working copy file and version 1.


Finally, all the content has been recorded as an animated file, you can refer to.

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.