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