VisualSVN在windows下搭建svn
1.首先下载VisualSVN Server Manager软件
2.
3.添加钩子 在项目名字上右键 点击properties 点击Hooks 在点击post-commit hook
4.把下面代码粘贴进去
@echo off SET REPOS=%1 SET USER=%2 SET SVN="D:/Program Files/VisualSVN Server/bin/svn.exe" //此处是svn的执行文件路径 SET DIR="D:/phpStudy/WWW/customer" //此处是需要自动同步的目录 (call %SVN% update %DIR% --username whl --password whl --non-interactive)
5.如果需要设置ip访问 可以选中visualSvn 右键点击properties