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

 

posted on 2016-11-02 12:01  ziyi_ang  阅读(94)  评论(0编辑  收藏  举报

导航