I believe you have learned about the necessity of using svn in my suggestion post. Now I will introduce how to configure a svn server for team collaboration, please go to the svn Chinese site (http://www.subversion.org.cn/) to understand the working principle and User Manual of svn, including Tortoise SVN (svn client software under win) user manual, here, I will explain how to build a Windows server with the apache win client svn service. For linux server, please install svn of linux version and use command line control. We will not introduce it here. Please refer to relevant materials. 1. Software Download The required software is apache2.0.59 (good stuff, you can run it directly with svn, but apache2.2.x does not support svn), svn1.4.0 and Tortoise SVN1.4.0. The above software has passed the test on the local machine. You do not have to go to the official website to download svn-related software. You can directly search for and download the software from Xunlei's website. 2. install and configure First, install apache. This is familiar to everyone. I will not describe it again. If you are not familiar with apache, you can search for Forum posts and install svn and tortoise svn on the server, as long as toritose svn is installed on the client, restart the client after the installation is complete. Double-click the Green Arrow of apache in the taskbar and we will find that the svn information is "Apache/2.0.59 (Win32) PHP 5.1.6 SVN/1.4.0 DAV/2 ". Enter the configuration section below: 1) Open the apache configuration file httpd. conf, Find # LoadModule dav_module modules/mod_dav.so and remove the previous #. Generally, the following two lines are automatically added after svn is installed.
LoadModule dav_svn_module "C:/Program Files/Subversion/bin/mod_dav_svn.so" LoadModule authz_svn_module "C:/Program Files/Subversion/bin/mod_authz_svn.so" If not, manually add, C:/Program Files/Subversion "is the installation directory of Subversion. 2) add
<Location/svn> DAV svn SVNParentPath "E:/svndemo" # SVNParentPath points to the upper-level directory of the svn resource library # SVNPath "E:/svndemo/repository" # Point SVNPath to the svn repository directory # Use SVNParentPath or SVNPath as needed # How to create the svn repository directory is added at the end of this Article </Location> E:/svndemo is the path of the svn repository on the server. Restart apache. In this way, the svn service has been set up. Create a new project folder in svndemo. This is called web. Right-click the folder and choose tortoiseSVN> createrepository. The create warehouse window is displayed. You can select the file type and select the default one. Enter http: // 127.0.0.1/svndemo/web in the browser. We will see the existing repository content. Of course, it is empty now. In principle, to avoid version confusion, a project corresponds to one warehouse, and multiple projects do not correspond to one warehouse. Now we import the file to the repository, right-click the folder tortoiseSVN-> import you want to import to the repository, and fill in the url of respository in the import window with your repository http path: // 127.0.0.1/svndemo/web. The import message below is filled with remarks. We recommend that you fill in the remarks, including the remarks for each submitted version. Click OK to import the file. Next, select a folder on the client. Generally, you can see a folder under the web root directory as a working copy (refer to the svn document for related concepts), right-click, and click svncheckout, of course, fill in the http path of the Repository (the same as the previously imported path). Click OK to checkout the repository file to your machine. You will find that all the files have a green check. Indicates the latest version. After you modify the file, the file becomes a red exclamation point, indicating that the file has not been submitted. Click svn commint, fill in the necessary comments, click OK to submit, and the file version of the repository will be updated. Click the blank space, click Refresh, and the file will change back to the green exclamation point. Right-click the working copy of other members and click svn update to obtain the latest version. In this way, parallel development can improve efficiency. Now, we will briefly introduce how to set up and use svn. For details, refer: Svn Manual: http://www.subversion.org.cn/svnbook/
TortoiseSVN documentation: http://www.subversion.org.cn/tsvndoc/
In addition, there are many other functions to build the svn server, such as adding authorized access that requires a user name and password. Because I was a leader in the company, I did not implement it in my own house, you can also add an experienced expert. Because of the relationship between personal energy and work, you may not write any technical tutorials in the future. I hope you will strengthen your initiative, think more, and start more when learning. Another point is mentality issues. Never be impatient when you encounter problems. What enterprises need is people who solve the problems so as to reflect your value. I hope you can continue to improve this document and make progress together ~~~ |