1. Prepare Software
Subversion server: http://subversion.apache.org/packages.html (this article uses collabnet
Windows Version)
Subversion client: http://tortoisesvn.tigris.org/tortoisesvn is a set of tools to expand Windows Shell, can be seen as a Windows Resource Manager plug-in, after installation windows can recognize
The working directory of the subversion.
2. server and client Installation
Windows InstallationProgramThere is nothing to say. Note that a repository must be specified during Server Installation, as if this path cannot contain spaces.
3. Create a version Library (repository)
To run the Subversion server, you must first create a version Library (repository), which can be seen as a database for storing data on the server. After the Subversion server is installed, you can run it directly, for example: svnadmincreate E: /Repository creates a version Library Under directory e:/Repository. You can also use tortoisesvn to perform this step in a graphical manner: Right-click the directory e:/Repository and choose tortoisesvn> createrepositoryhere... ", then you can select the version library mode. Here you can use the default mode, and then create a series of directories and files.
4. Configure users and permissions
Under repository
Conf directory, modify
Svnserve. conf:
# [General]
# Password-DB = passwd
Changed:
[General]
Password-
DB = passwd
Modify the passwd file in the same directory and remove the following three lines of comment:
# [Users]
# Harry = harryssecret
# Sally = sallyssecret
Most
And then changed:
[Users]
Harry = harryssecret
Sally = sallyssecret
You can also add any account in the form above.
The permission settings for these accounts are set in the authz file in the same directory.
5. RunSubversion server
Run svnserve-d-r e:/repository in any directory and our server program is started. Do not close the command line window. Close the window will also stop svnserve.
Vi. Initialization Import
Right-click the project root directory we want to import and choose tortoisesvn> Import... after urlofrepository input "SVN: // localhost/" OK, the directory remains unchanged. If no error is reported, all the data has been imported to the version library we just defined. Note that this step can be performed on another host with tortoisesvn installed. For example, if the IP address of the host running svnserve is 133.96.121.22, the content entered in the URL section is "SVN: // 133.96.121.22 /". At this point, the entire setup process is complete, and the initial import is completed. In this way, check in/out is the main operation in the future.