1、创建svn repository
2、配置svn用户权限/Users/gaohf/svn/repository/conf/目录下存在3个文件:authz、passwd、svnserve.conf
authz,内容如下:- [aliases]
- #
joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average -
- [groups]
- gaohf_group
= gaohf - #
harry_sally_and_joe = harry,sally,&joe -
- [/]
- gaohf=rw
- #
&joe = r - *
=
- [users]
- gaohf=123456
- [general]
-
- anon-access
= read - auth-access
= write -
- password-db
= passwd -
- authz-db
= authz -
3、启动服务器
没有任何提示就说明启动成功了。
4、将项目导入svn库
- svn
import /Users/gaohf/projects/demo/ svn://localhost/svn/repository/demo --username gaohf --password 123456 -m "Initial import"
5、签出项目