subversion配置

来源:互联网 发布:机房电脑控制软件 编辑:程序博客网 时间:2024/06/06 09:45

安装Subversion
首先初始化Repository,输入命令:
svnadmin create D:/TestRepository/
     
然后,把现有的项目的目录结构以及文件导入到Repository中:
svn import D:/Projects/Project1 file:///D:/TestRepository/Project1 -m “初始化“

启动服务
svnserve -d -r D:/TestRepository/
就可以下载了。

在conf的passwd的[users]中加入一行
xf = 123
然后将svnserve.conf中的password-db = passwd前的注释去掉(注意空格也要去掉
最后重启svn,就可以用用户名和密码修改,上传源码了。
conf/passwd配置用户
生成windows服务:
sc.exe create SVNService binpath= "D:/Subversion/bin/svnserve.exe --service -r E:/svndemo/repository" depend= tcpip

参考连接
http://hi.baidu.com/zgz0809/blog/item/788aee597c1611292834f084.html