It is very convenient to use the visual SVN server to build a local code management library. Many of SVN's "check and modify", "free code version rollback", and "version log" features are awesome.
It is an ideal Development Assistant in development. In addition, the memory of the human brain is usually intervoid. A lot of Self-written code may easily forget some important ideas such as modifications after a while.
Next we will deploy a local SVN server dedicated for ourselves.
========================================================== ==========
1. Visual SVN installation is very simple,
1 is almost the next step.
2.
Select the visualvsn server and console or only have the management and control permissions:
3.
Select the path of the program installation, the path of the Subversion repository (Library), and the Protocol and port used:
You can select the HTTP and HTTPS protocols. If you need to use the svn protocol, it is very convenient. After version 1.4, subversion adds the Service Running function.
The port number can be defined at will. You can select 443 and 8443 for HTTPS port numbers by default, and 80, 8080, and 81 for HTTP by default.
I personally prefer to Use https port 8443, because it is very simple that HTTPS security is relatively high. Although port 443 is a standard HTTPS port, it is certainly troublesome for web development,
At the same time, Skype also uses this port for some communication.
There is also the following identity for authentication, one is Windows authentication, the other is subversion Authentication
Subversion authentication is used by default.
4.
The next step is the file copy process:
5.
After the installation is complete, you will be asked if you need to run visualsvn Server Manager (a very useful management tool)
6.
Open "visualsvn Server Manager" as follows:
Ii. Configuration and usage of the visualsvn server [server side]
The following example shows how to add a code library [repository], for example:
Right-click "repository" in the left column:
Create a new code library as shown in, and enter the code library name in the text box shown in the following figure:
Note: If the checkbox in is selected, the trunk, branches, and tags subdirectories will be created under the code base startkit. If not selected, only the empty code base startkit will be created.
Click OK to create the code library.
After creating the code library, there is no content in it
Next, let's start security settings, right-click "users" on the left:
Enter the above information and click OK to create a user. Add other users according to the above process.
Next, we will add these users to the project we just created.
Click the created library, Lenovo, and right-click Properties)
Click "add...", and select the user we just added in:
Note that you must select the permission settings here.
Click "OK". The above user has different permissions to access the startkit code base.
========================================================
Ii. Check in the source code to the svn Server
If Visual Studio is used to create a project in the Lenovo folder, we need to check the source code of the project into the code library on the svn server,
Right-click the Lenovo folder. The right-click menu is shown in:
Select copy URL toclipboard to copy the unified resource locator (URL) to the clipboard.
Right-click the blank area of the computer and selectTurtle/Export
Then, a dialog box is displayed. paste the address to the first address bar:
Then select the output directory and click OK. The enter user name and password dialog box is displayed, and a new Lenovo folder is created in the export directory you selected.
Enter the username and password you just created. OK. The check-out page is displayed.
========================================================
Iii. upload files to the svn Server
Select the output file Lenovo, put the file to be uploaded, right-click to submit:
The submit dialog box is displayed:
You can enter related logs in the box under "recent information. For example, add: "++" Modify: "**" delete: "--" and so on.
Select a file to upload the file. A prompt is displayed after successful execution.
Update after submission. Otherwise, files are not displayed on the server,
For an update, select SVN update and submit.
So far, the svn server has been built.
========================================================== ====================
Original post address: http://blog.csdn.net/han_yankun2009/article/details/7856992