上文描述安装svn文章:https://www.cnblogs.com/victorcode/p/11090956.html
本次配置本地项目通过svn同步更新到linux系统环境项目:
1.首先找到 /home/svn/hooks { hooks },在hooks下创建 post-commit文件 不需要后缀.
文件加权限:chmod -R 777 /home/svn/hooks/post-commit
2.vim post-commit 加入如下代码:
#!/bin/sh
export LANG=zh_CN.UTF-8
SVN=/usr/bin/svn #cd 查看是否有此路径
WEB=/procject/helloworld #项目路径
$SVN update $WEB --username svn用户名 --password 对应密码
wq 保存
重启svn
测试是否成功 .
-----------------------------------------------------------------------------------------
killall svnserve 关闭svn进程
svnserve -d -r /home/svn 启动svn进程