在subversion官网下载svn-win32-1.7.14-ap24.zip
http://subversion.apache.org/
http://subversion.apache.org/download/#recommended-release
解压然后执行svnserve就可启动svn server了
cd E:\server\subversion\svn-win32-1.7.14\bin
svnadmin create D:\tmp\svn\repo\hiredmine
客户端checkout
svn co svn://localhost/hiredmine
参考:
http://svnbook.red-bean.com/en/1.7/svn.serverconfig.svnserve.html
创建SVN repository
svnadmin create /var/svn/your-repo
参考:
http://svnbook.red-bean.com/en/1.7/svn.reposadmin.create.html
svnserve -d -r D:\tmp\svn\repo
注意:在新库(如上例,hiredmine)的conf目录下设置用户,重启svnserve后才能正常使用。
否则,只能checkout,不能commit
1)conf/svnserve.conf 设置用户设置文件为当前目录的passwd:
password-db = passwd
2)在passwd文件中配置用户
例如:
[users]
sally = sallyssecret
sally = sallyssecret
调式用的话可以加个 --foreground
svnserve --foreground -d -r /cygdrive/d/tmp/svn/repo