#创建仓库
svnadmin create path
#启动服务器 3690端口
svnserve -d -r path
#检出
svn checkout http://svn.example.com:9834/repos
#提交
svn commit button.c -m "Fixed a typo in button.c."
#更新
svn update
# 帮助
svn help
svn help import
#查看文件
svn list file:///svn/repository/project1
svn list svn://192.168.1.168/project1
#检出
svn checkout svn://192.168.1.168/project1
#检出指定新目录
svn checkout svn://192.168.1.168/project1 p1
# svn import
# svn import是将未版本化的文件导入版本库中的最快方法,它会根据需要创建中介目录。
# svn import不需要一个工作拷贝,你的文件会直接提交到版本库,这通常用在你希望将一组文件加入到
# Subversion版本库时
svn import my.doc svn://192.168.1.168/project1/tools/my.doc -m "add"
#更新工作拷贝
svn update
#做出修改
svn add
svn delete
svn copy
svn move
#检验修改
svn status
svn diff
#取消修改
svn revert
#解决冲突
svn update
svn resolved
#提交你的修改
svn commit
svn add foo
svn add * (git add .)
svn delete foo
svn copy foo bar
svn move foo bar
svn mkdir blort
svn revert README
svn status foo
svn commit -m "Add a few more things"
#建立分支
svn copy http://svn.example.com/repos/calc/trunk \
http://svn.example.com/repos/calc/branches/my-calc-branch \
-m "Creating a private branch of /calc/trunk."
#建立分支
svn copy svn://192.168.1.168/project1/demo1/branch svn://192.168.1.168/project1/demo1/branch1 -m "Creating branch."
svn merge
svn diff
#版本344 比较
svn diff -c 344 http://svn.example.com/repos/calc/trunk
#合并
svn merge -c 344 http://svn.example.com/repos/calc/trunk
svn log svn://192.168.1.168/project1
#还原到某个版本
svn up -r 版本号
svn up -r 版本号 文件名称
# 比较
svn diff -c 9 svn://192.168.1.168/project1/demo1/branch
svn diff -c 9 svn://192.168.1.168/project1/demo1/branch > patchfile
svn merge svn://192.168.1.148/project1/demo1/branch
svn merge -r 5:9 svn://192.168.1.148/project1/demo1/branch
# 列出改动的文件
svn st
svn status