1. Preface
Hey, some of the content of this article comes from Baidu; simply organize and record some of the things that govern, SVN. Hope to see this article, can be a little help to everyone.
2. Introduction to the Environment
Server-side operating system: Window 64bit
Server-side software: Slik-subversion-1.9.4-x64.msi
Client side software: Tortoisesvn-1.9.4.27285-x64-svn-1.9.4.msi
The download link is provided at the end of this article.
3. Overview
Subversion is a free and open source version control system. Under Subversion Management, files and directories can transcend time and space. Subversion stores files in the central repository. This repository is much like an ordinary file server, but it can record every file and directory modification. This allows you to restore the data to a previous version and to see the details of the changes to the data.
TortoiseSVN is a free open source client for Subversion version control systems.
4. Installation of subversion and TORTOISESVN
In the server-side operating system, both subversion and TortoiseSVN are installed, and client-side software is installed on the server side to: The TORTOISESVN client used in this experiment to create a repository for the server side Repository) and folders (folder). Of course, you do not need to install the client, directly using command creation.
Below to install subversion, relatively simple next, always click on the finish, specifically as follows:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/83/2E/wKioL1dsqRixBZd8AAAgeJWRXI4997.png "style=" float: none; "title=" 2016-06-24_111725.png "alt=" Wkiol1dsqrixbzd8aaagejwrxi4997.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/83/2E/wKioL1dsqRngbca8AAAibWUSzZE848.png "style=" float: none; "title=" 2016-06-24_111747.png "alt=" Wkiol1dsqrngbca8aaaibwuszze848.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/83/2F/wKiom1dsqRmTB_zJAAAUeqFWCkw629.png "style=" float: none; "title=" 2016-06-24_111800.png "alt=" Wkiom1dsqrmtb_zjaaaueqfwckw629.png "/>
Here I choose to be complet, complete installation.
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/83/2F/wKiom1dsqRnSSm3UAAAajSEixkQ523.png "style=" float: none; "title=" 2016-06-24_111832.png "alt=" Wkiom1dsqrnssm3uaaaajseixkq523.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/83/2E/wKioL1dsqRmwBrftAAAUVMWBDfk533.png "style=" float: none; "title=" 2016-06-24_111848.png "alt=" Wkiol1dsqrmwbrftaaauvmwbdfk533.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/83/2E/wKioL1dsqRrBuGIDAAATweMRf0c273.png "style=" float: none; "title=" 2016-06-24_111922.png "alt=" Wkiol1dsqrrbugidaaatwemrf0c273.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/83/2F/wKiom1dsqRrC7Ug0AAAeOsJFpY8228.png "style=" float: none; "title=" 2016-06-24_111933.png "alt=" Wkiom1dsqrrc7ug0aaaeosjfpy8228.png "/>
Installation completed, install the client below, install the client as the installation of the server, after the installation is complete, right-click, back to more than usual two options, as follows: SVN checkout and TortoiseSVN, if not appear, you can restart the operating system, re-view. (The installation process is relatively simple and is no longer described.)
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/83/2F/wKiom1dsqjux9FR2AAANG2ybj6o802.png "title=" 2016-06-24_113355.png "alt=" Wkiom1dsqjux9fr2aaang2ybj6o802.png "/>
5, Subversion simple configuration and simple use of TORTOISESVN
1), select a storage space, create a new folder locally, right-click-select tortoisesvn--Select Create Repository here (Create a repository). Find the following: (Here I am in C drive, new test folder)
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/83/2F/wKiom1dsrUbiEPlBAACPGCDLqEc867.png "title=" 2016-06-24_114526.png "alt=" Wkiom1dsrubieplbaacpgcdlqec867.png "/>
As follows: Here is the hint need not to create the default folder (Trunk/branches/tags), here directly choose not to create, directly click OK.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/83/2F/wKiom1dsrUagn05qAAAMh3O1mXc938.png "title=" 2016-06-24_114559.png "alt=" Wkiom1dsruagn05qaaamh3o1mxc938.png "/>
Open the test folder to see the automatic generation of the following, where the Conf folder is something we want to focus on.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/83/2F/wKioL1dsrUfDNUafAABUNeTdUPI112.png "title=" 2016-06-24_114620.png "alt=" Wkiol1dsrufdnuafaabunetdupi112.png "/>
2), through the TORTOISESVN to create the stored folder, here can also not create folders, create folders can be implemented, the same server, through different folders to distinguish between different file types (such as log files placed in one file, important files in another file) storage path, or different departments of the file storage location. I'm going to wear a Loveyao folder here. Specific as follows:
Select the repository you created earlier test--right--Install to choose:
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/83/30/wKiom1dssR_BwMtnAAGmke00tqI426.png "title=" 2016-06-24_120129.png "alt=" Wkiom1dssr_bwmtnaagmke00tqi426.png "/>
Move the mouse to file:///c:test--right--Choose Create folder, enter the name of the Loveyao,ok to complete.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/83/2F/wKioL1dssR-gXQYYAAGfmOLP5MQ841.png "title=" 2016-06-24_120203.png "alt=" Wkiol1dssr-gxqyyaagfmolp5mq841.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/83/2F/wKioL1dssTiQ-62SAAAoFNxDLuY462.png "title=" 2016-06-24_115516.png "alt=" Wkiol1dsstiq-62saaaofnxdluy462.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/83/30/wKiom1dssTiSOhjwAAAjC9VUlxQ961.png "title=" 2016-06-24_115554.png "alt=" Wkiom1dsstisohjwaaajc9vulxq961.png "/>
3), simple configuration Subversion server
Open the Repository test--conf folder--There are several files, below a brief description of several file functions:
svnserve: A file-controlled daemon that controls access to the repository.
passwd: Stores the user name and password.
Authz: This file is svnserve authorization file, control the authorization information of specific folder, and this file can create user group groups, convenient permission control.
Simple Configuration server:
Svnserve file:
[general]//Remove the front #
Anon-access = Read
auth-access = Write
Password-db = passwd
Authz-db = Authz
passwd file:
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
Loveyao = 123//Add a user
Authz file://configure Permissions
[/]
Loveyao = RW
Start the server:
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/83/30/wKiom1dstfzztnU4AAAOGeT1kIo050.png "title=" 2016-06-24_122350.png "alt=" Wkiom1dstfzztnu4aaaoget1kio050.png "/>
4), client tortoisesvn simple configuration and use
Client PC, install TORTOISESVN client, create a new directory locally, select this directory--right--Choose SVN checkout--fill in the server link-ok-prompt for user name and password-check out success:
svn://server_ipaddr/loveyao
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/83/30/wKioL1dsu6KTPsLHAAA7diZuVhs332.png "title=" Qq20160624123103.png "alt=" Wkiol1dsu6ktpslhaaa7dizuvhs332.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/83/31/wKiom1dsxXzCzSq6AAAeoPpkVBQ291.png "title=" Qq20160624133007.png "alt=" Wkiom1dsxxzczsq6aaaeoppkvbq291.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/83/30/wKioL1dsu6Pxz6v-AABYKygPzgA399.png "title=" QQ picture 20160624124225.png "alt=" Wkiol1dsu6pxz6v-aabykygpzga399.png "/>
SVN client, main three operations:
SVN Checkout: The first time a client is used, the server repository needs to be checkout to a local directory (somewhat like mount or map)
SVN Update: Maintain server repository data consistency, update it before each commit, because the server repository is used by multiple users, and update can get other user-modified state.
SVN commit: After the user executes: Add, delete, change three actions, need to submit to the server side.
6. Server side and Client side
Subversion Server for window download link:
https://www.sliksvn.com/pub/
http://alagazam.net/
TORTOISESVN Client Download Link:
Https://tortoisesvn.net/downloads.html
Baidu Network disk Download Link: (contains instructions for use)
Http://pan.baidu.com/s/1slcOPm1
This article is from "Love_ Yao" blog, please be sure to keep this source http://20161215.blog.51cto.com/2276215/1792539
SVN subversion Server and TORTOISESVN client simple deployment