SVN server and client Installation
1. download and install the visual svn-server. (Process omitted)
2. download and install the tortoisesvn client. (Process omitted)
3. download and install the vs plug-in ankhsvn. (Process omitted)
Create a repository on the server
Open visualsvn servermanager, right-click repositories-New-repository, and enter the repository name (RECHARGE) in the displayed dialog box)
Security Settings
Right-click users on the left and choose create-user. In the displayed dialog box, add the user name and password: (Note that the user name and password are case sensitive.)
Set Source code Migrate to SVN Server
Find the new project folder (the project is already included), right-click tortoisesvn-import, enter the repository URL in the pop-up dialog box, and click OK to complete source migration.CodeTo the svn server.
Set Project Permissions
In SVN, permissions are divided into three types: noaccess (unavailable), read and write (readable and modifiable), and read only (read-only ).
Right-click the file to which you want to add permissions-all tasks-managesecurity. In the displayed dialog box, click Add. In the displayed dialog box, select the added user name and click OK, select permissions in the security window and click OK..
Migrate source code to visualstudio2010
Open visual studio2010, select Tools-options-sourcecontrol- ins, and select ankhsvn.
Click file-subversion-openfromsubversion. In the pop-up window, enter the repository URL. The enter user name and password dialog box is displayed, enter the user name and password and select the code file to be migrated to migrate the code to Visual Studio. In solution resource management, you can see the migrated project file. If there is a question mark and an exclamation point before the project file, it means that the current user has no access permission to the file.
Update the project from the server to the latest version.
Right-click the project in Solution Explorer and select update protect to latest version.
Submit the modified project to the server
After the project is modified, the check box in front of the project file is orange. In Solution Explorer, select a project file or the entire project file, and right-click commit. If the file is read-only to the current user, the system will prompt you to prohibit modification and other information when submitting the file.
View version update history
Right-click -- viewhistory. In the displayed dialog box, you can view the version Update Time, author, and version information.