[Go] Use SVN for source management

Source: Internet
Author: User
Tags svn client tortoisesvn

Original address:Gyzhao ' s, using SVN for source control (bottom)

1.SVN Server-side configuration

In team development, the Source version Control tool is one of the most important tools to track and maintain the source code, and to create branches for the project, unified source management and co-development. The main steps of the SVN server-side configuration are to create a repository, create a user, and set up user rights. The following are the actions that are performed on subversion using VISUALSVN server.

1.1 Creating a version Library

Run VisualSVN Server, select "Repositories", click the right mouse button, select "Create New Repository", enter the name:

1.2 Creating a user

Select "User", click the right mouse button, select "Create user ...", enter the user name password

1.3 Setting User Rights

You can set user access permissions for the entire repository, or you can configure permissions for a single specific source repository (similar to setting user permissions for the entire repository), as follows:

1. Select the repository where the project source is located: Sub-warehouse under Repositories, right click, select "Properties ...", set "Everyone" access to "no access" (Cannot access)

2. Select "Add ..." To add users to the source repository

3. Assigning permissions to users added to the source repository

2.SVN Client Use

We can import the source code directly into the SVN server using TORTOISESVN, or you can add the project to the SVN server directly in Visual Studio via VISUALSVN. After we have the source code in the server, we can use these client tools to manage the sources.

2.1 Importing the source code to the SVN server

2.1.1 Directly through the TORTOISESVN to the SVN server to import the source code

  First select the folder where you want to import the SVN server file, right-click, select "TortoiseSVN"-->> "import"

Select the address where you want to import the SVN server, select the library address you created earlier, and choose Trunk Branch

Import Complete:

2.1.2 Importing the source code through VISUALSVN in Visual Studio

Using Visual Studio to open the solution, select the solution, right-click "ADD solution to Subversion ..." and then click "Next"

Import into an existing library

Select the branch to import into the library

Select "Import"

Right-click on the solution and select "Commit ..." to submit the entire solution file to the SVN server

Select "OK"

2.2 Exporting source code from SVN server

2.2.1 Using TortoiseSVN to export the source code

Right-Select the folder to receive the SVN server import and select "SVN Check out"

Enter the address of the export server source code

2.2.2 Exporting files using VISUALSVN

Open Visual Studio and select the VisualSVN menu directly

Select the address in the SVN server where the export file resides

2.3 Moving in and out of code

You can use TortoiseSVN to right-click, update and submit the files exported from the SVN server directly:

You can also update, submit, and contrast in Visual Studio by using VISUALSVN:

You can choose Show Differences to compare the local file with the SVN server file:

References & Further Reading

Http://tortoisesvn.net/support.zh.html

[Go] Use SVN for source management

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.