linux 中svn 的一些有用命令
可以使用命令通过http执行shell脚本
$result = shell_exec('svn co svn://0.0.0.0.0/svn /data/wwwroot/project --username xxx --password xxx --no-auth-cache ');
1 下载远程svn目录
svn co svn://0.0.0.0.0/svn /data/wwwroot/project --username xxx --password xxx --no-auth-cache
2 客户端进行update,此时本地修改的文件进行保留
svn update --accept theirs-full /data/wwwroot/project --username xxx --password xxx --no-auth-cache 2>&1
3 判断本地文件夹那些文件已改动的命令
svn diff --diff-cmd "diff" -x "-q" . | grep Index | cut -d " " -f 2
你的指尖,有着改变世界的力量!
浙公网安备 33010602011771号