Create a repository with VISUALSVN server, and use of TORTOISESVN

Source: Internet
Author: User
Tags tortoisesvn tortoisesvn download

introduced the VISUALSVN server and tortoisesvn download, installation, Chinese.

SVN server Setup and use (i)

Subversion is an excellent version of the Control tool, its specific advantages and detailed introduction, there is no more to say.

First, download and build the SVN server.

Now subversion has migrated to the Apache website:

Http://subversion.apache.org/packages.html

This is the binary package, you can find the source code in the left navigation bar, the document.

There are 5 types of binary packages under the Windows operating system:

Personally, it is best to use VISUALSVN server servers and TORTOISESVN clients.

Click on the VISUALSVN connection above, download VISUALSVN server,:

Then download TORTOISESVN client, official website: http://tortoisesvn.net/downloads.html

Note Download the installation package that matches your computer, and you can find the language pack below the page:

After the download is complete, you should have these installation packages:

TORTOISESVN installation package and Simplified Chinese language pack

VISUALSVN Server Installation Package

To install the VISUALSVN Server installation package First, double-click the VISUALSVN Server installation package:

Click Next and go to the next step:

Click Agree, the next step in the diagram:

Select one of the options above, click Next and go to the next step:

Location refers to the installation directory of the VISUALSVN server, Repositorys is the specified version of your repository directory. Server port specifies a port, use secure connection Shan represents a secure connection using the Subversion authentication represents the use of subversion's own user authentication. Click Next to proceed to the next step:

Click Install to proceed to the next step:

Wait for the installation to complete:

When the installation is complete, start visualsvn Server Manager:

Next we install TORTOISESVN, double-click the installation package and go to the next step.:

Click Next to proceed to the next step:

Select Accept, then click Next to proceed to the next step:

Select the installation path and click Next to proceed to the next step:

Click Install to start the installation:

Wait for the installation to complete after the installation is complete:

Next we install the Simplified Chinese Language pack, this is very simple, all the way next, will not. When the language pack is installed, right-click anywhere in the desktop, and then find SVN in the context menu:

Select settings and go to the next step:

In the right language, select Simplified Chinese, then click Apply, OK, Chinese is finished,:

Here, both the server and the client are already installed, and the next one describes using VISUALSVN server to create the repository, as well as the use of TORTOISESVN.

_________________________________________

How to use VISUALSVN server to build the repository, and the use of TORTOISESVN.

First open the VisualSVN Server Manager:

You can see some information about the repository on the right side of the window, such as status, logs, user authentication, repository, etc. to build the repository, you need to right-click the repositores in the left window:

In the popup context menu, choose Create New Repository or create new->repository to proceed to the next step:

Enter the repository name and tick the Create Default structure check box (recommended). Click OK, the repository is created, and the repository will default to build trunk,branches,tags three folders:

At this time we import the project into the repository, find your project folder, right-click on the project folder, find the SVN menu, select Import:

In the pop-up dialog, fill in the repository URL, this URL can be obtained from VISUALSVN Server Manager, right-click on your repository, select Copy URL to Clipboard, then copy the repository URL to your clip version.:

Paste the copied repository URL and add the trunk subpath after the URL. Then insert the import information into the import Information "Import Project to Repository".:

Click OK and the selected item will be imported into the repository.:

After the project is imported into the repository, it is not easy for anyone to read and write to the repository, so user groups and users need to be established.

Right-click the user group on the left side of the VisualSVN Server Manager window, select Create User, or create a new->user:

In the popup dialog box, fill in the user name and password, then click OK:

Create user Develpoer1,develpoer2,develpoer3,test1,test2,manger Six users in the same way, representing 3 developers, two testers, and one project manager, respectively:

Then we set up the user group, right-click the user group on the left side of the VisualSVN Server Manager window, select Create Group or create a new->group:

In the pop-up window, fill in the group name as developers, then click the Add button, select three developer in the pop-up window, add to the set, then click OK:

Create group Managers,testers in the same way:

Next we set the permissions for the user group, right-click on Myrepository, select Properties:

In the dialog box that pops up, select the Security tab, click the Add button, select Developers,managers,testers three groups, and then add them, set the Developers,managers permission to Read/write, The tester permission is set to read only,:

At this, the server is finished.

Next, we use the client to check out the code, right-click on the left side of the desktop, select the SVN checkout, in the Pop-up dialog box to fill in the repository URL (specific access, the upload project to the repository when said), choose to check out the directory, click OK.:

To start checking out a project:

After checkout is complete, we open the Working Copy folder and see all the files and folders have a green √.:

Now that the repository is created and the project is imported using TORTOISESVN, the checkout project has been introduced.

Next, try TortoiseSVN to modify files, add files, delete files, and how to resolve conflicts.

Add File

Add a Readme.txt text file to the checked-out working copy, and the text file will appear as having no version control status:

At this point, you need to inform TORTOISESVN of your operation:

After joining, your file will become this state:

This is the time to commit using TORTOISESVN. So that others can see the changes you have made.

Modify a file

Using the TORTOISESVN update, modifying the Readme.txt file in the working copy, adding "Hello world!", and then saving, you will find that the Readme.txt file icon has changed:

This red exclamation mark indicates that the file has been modified, and when you commit the change, the other person can see your changes.

Renaming files

Using the TORTOISESVN update, rename the working copy of the Readme.txt file to "Readme1.txt", and then save, you will find the Readme.txt file icon has changed:

Add a file more reason, this time you need to tell TortoiseSVN your operation:

After joining, commit, this time the Readme.txt file in the repository will be renamed to "Readme1.txt".

deleting files

Using the TORTOISESVN update, using TORTOISESVN to delete the Readme.txt file from the working copy and submit it, the corresponding file in the repository is deleted:

Force Write comments

In order for you to see more clearly the reasons for each change you make, you should write a comment on each submission and try to be as detailed as possible.:

However, there may be some people because it is too cumbersome to fill in the comments, this is not conducive to later version control, you can force to write comments at the time of submission, first right click, select the Tortoisesvn-> property:

In the popup dialog box, click New log size, set the minimum number of characters for the commit log and the minimum number of characters to lock the log to 20, the character position of the display edge in the submit text box to 100, click OK:

Commit, and submit again later, if the input comment is less than 20 characters, it will not be able to be submitted.

Conflict resolution

The problem of conflict is the most common problem, it is generated, a user check out a working copy of a, and then the B user check out a working copy B. Then a user modifies the file C in copy a (which can be content modification, file deletion, renaming, and location movement). and submit. At this time B user also to file C of the same part of the changes, at this point if the B user commits, will be informed that the version is outdated, ask for updates, and then updated when the conflict will be prompted by the conflict editor can be manually selected.

Create a repository with VISUALSVN server, and use of TORTOISESVN

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.