有一天有个老项目须要更新。git
麻蛋,发现还用的是svn协做工具,这时候git已经使用两年了。svn
svn没有所有忘记,可是也不记得什么了。工具
在这里整理下,万一哪天须要用到有个记录。spa
检索项目:server
svn co http://svn_server/xxx_repository/branches/br_feature001 it
svn checkout svn://192.168.0.1/runoob01 --username=user01sed
转化工做分支:d3
svn switch svn://xx.com/repo/branches/TRY-something项目
建立分支:注释
svn cp -m "create branch" http://svn_server/xxx_repository/trunk http://svn_server/xxx_repository/branches/br_feature001
查看状态:
svn status (【?新增未提交】【M编辑更新未提交】【A已经添加到版本库】)
提交:
svn commit -m "这是一次提交的注释"
创建tag:
svn copy http://svn_server/xxx_repository/trunk http://svn_server/xxx_repository/tags/release-1.0 -m "1.0 released"