1, create the local code warehouse
First create an SVN repository directory
Svnadmin Create/users/mac/svn/mycode
The system will automatically generate the catalog files
Go to configuration file directory
Modify Svnserver.conf
Find the file and remove the comment
- # anon-access = Read
- # auth-access = Write
- # password-db = passwd
- # authz-db = Authz
Open passwd File Add users
[Users]
#账号 = password
Mac=mac
Open Authz, configure user groups and permissions
Topgroup This group, then the permissions are configured.
[Groups]
Topgroups=mc
Use [/] to represent all repositories in the SVN server
[/]
@topgroups = RW
Configuration complete
Start the service
Svnserve-d-R/USERS/MAC/SVN
(1) Local code upload to server
Initial operation required for the first time
SVN import/users/apple/documents/xx svn://localhost/mycode/xx--username=mac--password=mac-m "Initialize import"
(2) pull down the code from the server
SVN checkout Svn://localhost/mycode--username=mac--password=mac/users/mac/documents/code
(3) After submitting the code to the server
CD to file directory
SVN commit-m ' modify content '
(4) Update the server code to the client
SVN update
Installation configuration and use of the SVN--mac system