There are two common SVN Methods: Command Line and graphic interface. Here we will introduce them using the window platform.
Win32subversin: http://subversion.apache.org/packages.html#windows
Tortoisesvn: http://tortoisesvn.net/downloads.html
Install the two software respectively. The following describes some common usage of the two.
First, check whether the svn and svnadmin commands exist in the command line.
First, create a folder. If it is E: \ SVN, go to this file in the command line:
Run the following command to create a project in pro1: svnadmin create -- FS-type bdb./pro1
Run the following command to open the svn Service (note that this window cannot be closed): svnserve.exe-d-r e: \ SVN
Open a command line and run the pro1 project checkout: SVN Co SVN: // localhost/pro1
Of course, tortoisesvn can help us to create a project and create a folder. The folder should be empty. Right-click the file and choose tortoisesvn> Create repository here, you can create a project.
Checkout: Right-click a project and select SVN checkout. Then, in the pop-up box, enter the project URL in the URL of repository. If you need the user name and password, a prompt box is displayed.
The problem is that the window is always open and cannot be closed. Can I register as a system service? The new version is ready, and the command is long as follows:
SC create svnserve binpath = "\" C: \ Program Files \ subversion \ bin \ svnserve.exe \ "-- service -- root E: \ SVN "displayname =" Subversion repository "depend = TCPIP start = auto
The register command is registered as a service. The service name is svnserve and the display name is subversion repository, which can be found in the system service items. We hope that the version after the subversion will help us automatically register as a service, which can reduce the trouble.
Then open the service: Net start svnserve
The command to stop this service is: net stop svnserve
If you want to add a password to pro1 to improve security, you can go to the conf directory of pro1:
1. Open svnserve. the conf file is hit to Anon-access. It has three first items: read, write, and none. Anonymous Users have the following permissions: write, read, and no permissions. Then press password-DB = passwd and comment out the comment.
2. Open the passwd file, and add admin = test123 to the last line. In this way, a user named admin in pro1 project has the password test123.
The basic problem of constructing the svn server is solved here. For its specific usage, you can view official documents in many places on the Internet.
If you want to use a free SVN server, Google Code is commonly used, but this is mandatory open-source.