SVN 客户端


基本安装步骤


首先官网链接地址


  • 下载好解压,双击运行

Image text


  • next

Image text

  • next进行下一步

Image text

  • Command line client tools 是否选择使用命令行操作,如果不用,直接next

Image text

Image text

  • 点击finish 完成,这时,我们就可以选择任意空白位置右键查看安装是否完成

Image text





SVN基本操作


Checkout

Image text

Image text

Image text

Image text

Add & Commit

Image text

Image text

Image text

Image text





svn使用post-commit自动部署


  • post-commit.bat



@echo off
SET REPOS=%1
SET REV=%2
SET DIR=%REPOS%/hooks
SET WORKING_COPY=E:/phpStudy/WWW/h1901/demo   此为目录地址
SET PATH=%PATH%
svn update %WORKING_COPY% --username 用户名 --password 密码

请将上述参数进行替换,并保存文件为:post-commit.bat 放到版本库的hooks文件夹里面。

Image text

Image text

操作完毕,检查Post-commit hook是否加粗


注:目录地址需要checkout一次(同本地svn的checkout操作一样)


powered by GitbookEdit Time: 2023-04-08 10:28:32