svn 自我学习

搭建svn环境:
1,安装eclipse的svn插件(这个略了,熟悉度:51%)

2,安装svn服务器(独立安装包)

创建本地仓库:

方法1,cmd下,需要进入svn安装路径下的bin文件下,然后执行svnserve -d -r F:\svn\rep (F:\svn\rep这个地址随意),光标一直闪动应该就OK

方法2,需要进入svn安装路径下的bin文件下,然后执行sc create MySvnService binpath= "D:SVN\bin\svnserve.exe --service -r F:\svn\rep" ,这样可以在管理服务中启动,或用命令net start MySvnService 或 stop 来启动

3,在eclipse新建资源库时,用的是本地仓库,使用的url是:

svn://localhost/rep ,这个跟前面创建的仓库“rep”对应。


点击finish时出现:
Authorization failed
svn: 认证失败

解决:在新建的仓库中找到conf-svnserve.conf中的


# anon-access = read
# auth-access = write

改成

anon-access = write
# auth-access = write



终于ohkkk,还有一些其它细节,正在学习。。。。。

你可能感兴趣的:(SVN)