首先推荐大家一个应该是国内外最好的SVN仓库,不限私有,不限成员:https://svnbucket.com/
SVN官网 https://tortoisesvn.net/downloads.html 以及中文包
visual studio 使用的SVN插件
visualsvn 下载地址 https://www.visualsvn.com/visualsvn/download/
SVN排除的上传
packages bin obj PublicDLL .vs *.user *.suo *.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo __pycache__ *.rej *~ #*# .#* .*.swp .DS_Store [Tt]humbs.db
常用的命令
先更新 合并冲突 在提交 当然下面命令用不到 都是图形化的
# checkout代码
svn co svn://svnbucket.com/xxx/xxx
svn up
svn add filename
svn add *.php
svn add . --no-ignore --force
svn commit -m "提交描述"
svn log test.php
svn log -r 100
svn revert test.php
svn revert -r 目录名
svn revert --recursive 目录名
svn diff
svn diff test.php
svn diff -r 200:201 test.php
svn diff -r 301 bin
svn status
svn info
svn ls
svn ls -r 100
svn blame filename.php
svn cat test.py -r 2
svn cleanup
$ svn mkdir spool
$ svn propset svn:ignore '*' spool
$ svn ci -m 'Adding "spool" and ignoring its contents.'
$ mkdir spool
$ svn propset svn:ignore 'spool' .
$ svn ci -m 'Ignoring a directory called "spool".'
svn switch svn://svnbucket.com/test/branches/online1.0
svn switch --relocate 原svn地址 新svn地址
svn cp -m "描述内容" http://svnbucket.com/repos/trunk http://svnbucket.com/repos/branches/online1.0
cd branches/online1.0
svn merge http://svnbucket.com/repos/trunk
svn merge --reintegrate http://svnbucket.com/repos/branches/online1.0
svn rm http://svnbucket.com/repos/branches/online1.0
svn help
svn help commit
手机扫一扫
移动阅读更方便
你可能感兴趣的文章