First, install SVN server side and client (version 1.9)
Two, create SVN warehouse
To create a warehouse:
Use command: svnadmin Create warehouse Address
such as: Svnadmin Create E:/svn/app/shop
third, add SVN to the service boot automatically start use command:
SC Create svn binpath= "F:\software\SVN\server\bin\svnserve.exe--service-r F:\software\SVN\app\shop" Displayname= " Svn-service "start= Auto depend= Tcpip
The first address is the directory where the Svnserve.exe is located. The second address is the repository directory
Note: such as binpath= "" "= number must be a space before the = number can not have spaces
Four, two kinds of configuration: 1. Anonymous user 2. Account Login
The following three files are three files in the generated warehouse directory
Account Login Configuration:
svnserve.conf file
1.19 lines changed to Anon-access = None to remove #
2.27 lines password-db = passwd # get rid of
3.36 lines authz-db = Authz # get rid of
Note that there is no space in front of anon-access
For example:
[General]
Anon-access = None
auth-access = Write
Password-db = passwd
Authz-db = Authz
Realm = Object
passwd file refers to the user name password, such as:
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
LP = Lp123
WD = wd123
Authz File Configuration permissions:
[/] #配置仓库 [/] on behalf of all catalogs
LP = RW #配置读写权限 r Read W write RW read/write
WD = RW
Five other programmers SVN working directory operations
1. Install Client SVN first
2. First, a checkout will appear. SVN hidden folder
3. The first time submitted to the Warehouse right button TortoiseSVN right menu add
VI. Matters of note
If authentication failure occurs:
1. User name password writing error can not be preceded by a space or user name password input is incorrect
2. Is the warehouse permissions set error can be Authz file [/] on behalf of all documents