Subversion 常用命令分类整理 · 随查随用
# 检出到指定目录 svn checkout https://192.168.1.110:4443/svn/项目名/trunk ./myproject svn update
svn add newfile.txt svn commit -m "添加新文件" svn revert modified.txt
# 创建功能分支 svn copy https://server/svn/项目/trunk \ https://server/svn/项目/branches/feature-xxx \ -m "创建新分支" # 创建发布标签 svn copy https://server/svn/项目/trunk \ https://server/svn/项目/tags/v1.0 \ -m "发布v1.0"
svn list https://192.168.1.110:4443/svn/项目名 \ --username huqiang \ --password yourpassword \ --non-interactive \ --trust-server-cert-failures=unknown-ca,cn-mismatch,expired,not-yet-valid,other
# SVN 别名,加入 ~/.zshrc 后运行 source ~/.zshrc 生效 alias svnst="svn status" alias svnup="svn update" alias svnlog="svn log -l 10" alias svndiff="svn diff"