[Go] Personal source control: How to configure your own SVN Repository (diagram) in the native

Source: Internet
Author: User
Tags svn update tortoisesvn

This article transferred from: http://blog.csdn.net/wikijava/article/details/6245588

Repository is the central repository of source code, all the modified source code is saved here, and in which all the modified version, branch version, version merge, as well as concurrent modification processing. The main functions of SVN are used for team development, which deal with versioning and concurrency modification conflicts for source code modifications. For personal development, although there is no problem of concurrent modification conflicts, the personal source code can use the SVN version control function to find the release record in the development process. General personal no conditions also do not need to take a separate server to do Repository, in the development process of this machine mistakenly delete the code may occur, so it is necessary to create an SVN Repository in this machine.

Specific steps:

1. SVN installation

To the official website http://tortoisesvn.net/downloads.html Download the latest version of the installation.

2, set up the Repository of the machine

For example, put the repository on the E-drive, create a folder E:/repository/trunk/myproject (note, make sure you can't delete), then right-click on this folder and select Tortoisesvn->create repository here. Such as:

Prompt to create success

Click OK, and then e:/repository/trunk/myproject the following files in the folder

At this point, the source Library was created successfully.

3. Create a local working folder

Create the working directory on the D disk, D:/workspace/myproject, then right-click on this folder and select SVN CheckOut, as

In the pop-up box, enter the URL of the Respository box (note that this is using the file protocol) File:///e:/repository/trunk/myproject

Click OK to eject the Check out Success prompt box.

Click OK to finish creating the work and see a hidden folder in the folder:. SVN.

4, upload the source code to Repository

After creating the good source under the D:/workspace/myproject folder, right-click the MyProject folder in any blank space and select SVN Commit.

Fill in the comments, tick the select/deselect all check box, and click OK to submit the code.

Finally popup code upload success Prompt Box

At this point, the MyProject code of our working folder is in version control state, and later there is code modification, then do the SVN commit operation. If we accidentally put

The code under the working folder has been removed, and we can perform an SVN update operation from the source repository to ensure that the code is not lost during the personal development process.

[Go] Personal source control: How to configure your own SVN Repository (diagram) in the native

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.