1、Windows服务器的SVN Server推荐VisualSVN Server;
2、安装、配置新代码仓库比较容易,略过;
3、服务器端除了装VisualSVN Server服务器端外,另外再装TortoiseSVN;
4、服务器端和客户端都checkout 下目录;
5、注意:自动发布的钩子脚本,不支持https
![花了一下午,VisualSVN <wbr>钩子脚本总算撸好了! 花了一下午,VisualSVN <wbr>钩子脚本总算撸好了!](http://ww3.sinaimg.cn/large/66f5db06gw1ennbhlpozsj20f70f2q4s.jpg)
6、关键:SVN SERVER控制器post-commit钩子脚本:
"C:\Program Files\VisualSVN Server\bin\svn.exe" update "D:\wwwroot\2015" --non-interactive --trust-server-cert --no-auth-cache --username username --password password
(网上教程由于后台过滤敏感字,常常把英文"过滤为中文“,把--过滤为-)
![花了一下午,VisualSVN <wbr>钩子脚本总算撸好了! 花了一下午,VisualSVN <wbr>钩子脚本总算撸好了!](http://ww2.sinaimg.cn/large/66f5db06gw1ennats2heyj20h70c9wfz.jpg)
![花了一下午,VisualSVN <wbr>钩子脚本总算撸好了! 花了一下午,VisualSVN <wbr>钩子脚本总算撸好了!](http://ww2.sinaimg.cn/large/66f5db06gw1ennbh93bn1j20n60ffmzy.jpg)