svn版本提交

1.拉代码

svn checkout svn://192.168.1.25/qrd89x9_5.1/tags/android_V03.53_20160705

2.建分支

svn cp svn://192.168.1.25/qrd89x9_5.1/tags/android_V03.53_20160705 svn://192.168.1.25/qrd89x9_5.1/branch/dbg_chenlei_systemui_20160705

3.切换分支或者tag

svn switch svn://192.168.1.25/qrd89x9_5.1/tags/android_V03.53_20160705

4.merge分支

svn merge svn://192.168.1.25/qrd89x9_5.1/branch/dbg_chenlei_systemui_20160705

5.提交代码

如果有新加文件:
svn add filename
没有新加文件:
svn commit -m "info

6.打tag

svn cp svn://92.168.1.25/qrd89x9_5.1/trunk svn://192.168.1.25/qrd89x9_5.1/tags/android_V03.53_20160705

7.全部revert

svn revert -R .

8.查看信息

svn info

9.比较两个版本不同,打出不同文件列表

svn diff -r r2:r239 --summarize > diff.txt
tar -zcvf files.tar.gzx --files-from diff.txt

10.查找和删除

find ./ -name .gitignore -exec rm -rf {} \;

SVN备份和恢复:

1。svn 备份:

svnadmin dump projecttest/ > dumpfile

2。svn恢复:

svnadmin create projecttest
svnadmin load projecttest < dumpfile

results matching ""

    No results matching ""