一、环境

说明:

(1)服务器端除了装VisualSVN Server服务器端外,另外再装TortoiseSVN

(2)服务器端和客户端都checkout 下目录

(3)注意:自动发布的钩子脚本,不支持https

  wKioL1kP0y_AYoiuAABdyriV5Fo983.png-wh_50

一、配置

   找到需要同步的代码库编辑Post-commit hook脚本:

wKioL1kP00yAXlKfAAAy2WsSWUU924.png-wh_50

编辑内如:(替换其中的用户名及密码,D:\wwwroot为网站根目录

  "C:\Program Files\VisualSVN Server\bin\svn.exe" update "D:\wwwroot" --non-interactive --trust-server-cert --no-auth-cache --username username --password password6a

 wKiom1kP03nxzJLpAACk_Aj8CE4116.png-wh_50