One, the required software
1. Win32 version of the Subversion server. Click here, and then open the SourceForge page to download, the current version is Setup-subversion-1.6.16.msi.
2. TORTOISESVN client. The server does not have a graphical interface, it will be a bit uncomfortable to use, the client provides a graphical screen. This is easier to find, Baidu a bit more is.
3. ANKHSVN, this is an SVN plugin for Visual Studio.
Second, installation
The installation process is easy, the default installation of these three software can be. The TORTOISESVN will require a reboot after the installation is complete.
Third, Build a version library
First, create an empty directory (assumed to be e:/localrepository) as the root directory for all versions of the library, making it easy to centrally manage all version libraries. There are two ways to build:
L command line mode:
The bin directory of the Subversion server has been automatically added to the environment variable at installation time, so simply enter it directly on the command line:
Svnadmin Create E:/localrepository/repos1
L tortoisesvn interface mode
Create the Repos1 folder in the current directory, and then right-click to select tortoisesvn-> to create a version library here (English tortoisesvn>create Repository here Pop-up dialog box prompts youto create a successful.
In either of these ways, you can create a version library, and there will be some version library files under the Repos1 folder.
Four, start the SVN server
After the version library is built, then it's time to start the SVN server and enter at the command line:
Svnserve--daemon--root e:/localrepository
This command has two functions, one is to start the server in a daemon (--daemon), and the other is to set the root directory of the SVN server as e:/localrepository. In particular, this window cannot be closed, and the SVN service is stopped once it is closed.
You can then view the version library by selecting the tortoisesvn-> version Library browser (tortoisesvn->repo-browser) . In the Pop-up URL dialog box, enter
Svn://localhost/repos1
Then you can see the REPOS1 directory structure, but now it's still empty.
Five, Configuring Users and Permissions
Open e:/localrepository/repos1/conf/svnserve.conf with Notepad
Remove the # password-db = passwd (#表示注释) at the beginning of the line.
Then open the passwd file in the same directory and add a line to the end
Admin=admin
User name = password, set yourself casually.
Six, add VS2008 project to SVN
The ANKHSVN is automatically loaded after installation and VisualStudio2008 as the default SVN plugin in source control.
Open a VisualStudio2008 project, right-click the solution, select Add Solution to Subversion, and then pop up the following dialog box:
Enter SVN://LOCALHOST/REPOS1 in the Repository URL input box, click OK
It also pops up a dialog box that lets you fill in the log message
First casually write something, and then click OK to enter the account password, enter the above added Admin user can be completed, the project will be imported successfully.