@echo off
SET REPOS=%1
SET REV=%2
SET DIR=%REPOS%/hooks
SET WORKING_COPY=D:phpStudyWWWzwcadhaoPinTongJi
SET PATH=%PATH%;
svn update %WORKING_COPY% --username zhangsan--password zhangsan
其中D:phpStudyWWWzwcadhaoPinTongJi是你要同步到的web目录位置
账号zhangsan和密码zhangsan是你创建的当前仓库的账号和密码