Recently, I have made several projects and want to manage documents, materials, and codes. I am tired of copying and paste's data backup methods, and it is difficult to roll back, this wastes a lot of time. Among the current management tools, subversion is undoubtedly the best choice. It is a CVS upgrade, and its directory is relatively independent and convenient for backup. And supporting client products such as tortoisesvn make it easier to use.
Below are some instructions on installing subversion on Windows:
Http://www.cnblogs.com/MaxWoods/archive/2005/12/19/300246.aspx
Chinese site: http://www.subversion.org.cn/
I personally have several experiences in the installation and configuration process:
1. for personal use, I think Apache is not installed and basically cannot be accessed remotely through HTTP. If you require remote access through the Web, you can install related modules such as Apache.
2. Generally, multiple projects need to be created. In this way, you need to create multiple databases under the root directory repository, so you need to set relevant permissions.
3. If it is code management, try to manage the code in the trunk, tags, and branches methods recommended by the official team, which will be much more convenient in the future.
These three directories are three directories under a project, such as dskin. There is only one warehouse named dskin on the Subversion server, and there are three code directories under it, instead, there are three repositories named trunk, tags, and branches.
Therefore, after the dskin repository is created, three folders, trunk, tags, and branches, are created under the repository.
The following are the simple installation steps and precautions:
Subversion and tortoisesvn download to its official website: http://subversion.tigris.org
Download file list:
1. Click here to download the subversion. The version is currently installed in version 1.5 and the subversion service program.
1.5 is a new version. No EXE installer is available. You can decompress it using a zip package.
2. tortoisesvn subversion client program.
Installation:
1. Install the server version and decompress the zip package.
SC create svnserve binpath = "F:/subversion/subversion_bin/bin/svnserve.exe -- service-R F:/subversion/repos" Start = auto displayname = "Subversion repository" depend = TCPIP
Note the following: Key = value. The SC command is silly. There must be no space between key and =, and a space between = and value. Do not include a slash in the directory after the subversion.
Before deleting a service, you must. MSC) in service management, stop the corresponding service. Otherwise, the service will not be deleted immediately, but a delete mark will be made.
Delete service command: SC Delete service name; above svnserve
Before executing this command, you need to use tortoisesvn to create the F:/subversion/repos code repository.
2. Multiple libraries must be created under repos, for example:
Repos
------ Dskin
------ Network
Each project also uses tortoisesvn to generate a code repository. When registering a service, you only need to use the parent directory of these projects as the target directory.
3. Permission Configuration
It seems that you need to configure permissions in version 1.5. Create a user in the conf/passwd directory. Open the conf/serve. conf file, remove the # sign before the option, and ensure that there is no space before each configuration. Open the conf/authz file and create the following configuration (this is the dskin configuration ):
[Groups]
Admin = alexding
[Dskin:/]
@ Admin = RW
* = R
Configure the parent directory repos as follows:
[Groups]
@ Admin = Alex
[Repos:/dskin/network]
@ Admin = RW
* = R
Subversion and tortoisesvn download to its official website: http://subversion.tigris.org
Note: If you want to use the tortoisesvn Chinese interface, you also need to download the language installation package. If you only use it on a local computer and do not use the Subversion service, you only need to install the tortoisesvn components.
1. download the file list:
1. Click here to download the subversion. The version is 1.3.0 and the subversion service program.
2. Click here to download tortoisesvn. The version is 1.3.2 and the subversion client program.
3. Click here to download the tortoisesvn Chinese Language Pack. The version matches the above one.
4. Click here to download the svnservice. You can package the Subversion service into a Windows NT Service.
Ii. Installation Steps
1. Install Subversion
2. Install tortoisesvn and Language Pack
3. Configure the Subversion Service
The Subversion itself is started by the command line. It is found in the Subversion installation directory. It cannot be started with windows like the Windows NT Service, and needs to be packaged as a Windows NT Service through svnservice. the specific settings are as follows:
After you unpack the downloaded svnservice, copy the downloaded svnservice to the/bin directory in the Subversion installation directory to ensure that svnservice.exeand svnserve.exe are in the same directory.
Installation Service:
Run the command: svnservice-install-d-r <svnroot>
In practice, <svnroot> represents the electronic repository directory of the Subversion service.
Change service settings:
Run the command: svnservice-setup-d-r <newsvnroot>
In practice, <newsvnroot> indicates the electronic warehouse directory different from that when the Subversion service is started.
Delete service:
Run the following command: svnservice-Remove
4. Use tortoisesvn to create an electronic warehouse
The tortoisesvn client is not an independent program, but is integrated with the Windows Explorer Shell. Its operations are completed through the Environment menu.
As shown in:
1. Create an empty directory named svnroot
2. Right-click the directory or in the blank space, and select create repository here from the tortoisesvn menu... (create an e-repository here). After you select an e-repository type, some files and directories are automatically generated. in this way, you can create multiple e-warehouses in the same way.
Note: There are two types of e-warehouses available:
1. Native filesystem (fsfs) local file system
2. Berkely database (bdb) Berkely Database
Different options only affect the Data Access format of the electronic warehouse. The default option is native filesystem.
In this example, you can use: svnservice-install-d-r e:/svnroot to install the Subversion service.
To ask about the services installed on the local machine, right-click the service and choose reop-browser. The following dialog box is displayed:
To access a local e-repository, you can use the File Protocol: file: // E:/svnroot.
If you access an electronic repository of another machine from the network, the svn protocol is used, for example, SVN: // 127.0.0.1.
The e-repository content is displayed in a tree structure in the dialog box.