当前位置:网站首页>SVN分支管理
SVN分支管理
2022-07-03 05:55:00 【殷乾Lakers】
背景:现在大家基本上使用git管理代码,对git分支处理应该都比较熟,记录一下古老的svn分支用法。
1.TortoiseSVN 处理分支合并
1.1 用TortoiseSVN Repo-browser,代码库先copy to ,创建分支 b2



1.2 此时看到版本库有 主干trunk 分支 b1 b2

1.3 检出到本地b2


1.4 本地b2分支修改内容,增加文件003,提交到版本库 分支b2

1.5 本地分支合并


1.6.merge类型
1. Merge a range of revisions
b1分支新增文件111.txt,提交分支版本库

from分支版本库,合并到本地trunk



2. Merge two different trees
易混淆概念
在From中选择trunk的路径,在to中选择branches路径。在merge时,前后版本会先比较内容,再将差异部分copy到本地。From是左边,类似于原始版本,to是右边,类似于修改后的程序。
错误理解: from 合并的源分支,to 合并的目标分支。未考虑下面的copy选项。
正确理解: from 原始版本 ,to 修改后的程序,差异部分copy到本地原始版本trunk。

可以测试一下test merge,查看冲突,相当于打印预览
merge之后,可以看到,trunk已经合并了b2分支的内容了

提交版本库trunk

2.IDEA 处理分支合并(推荐使用)
2.1 切换到主分支trunk,查看svn的当前环境

system项目,本地Trunk分支,线上Trunk分支

Merge from 选择子分支合并到当前主干trunk


有冲突,idea会提示,在idea工具上解决比较友好。
边栏推荐
- 88. 合并两个有序数组
- Ensemble, série shuishu] jour 9
- Leetcode solution - 02 Add Two Numbers
- 1. 两数之和
- [advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer
- Skywalking8.7 source code analysis (I): agent startup process, agent configuration loading process, custom class loader agentclassloader, plug-in definition system, plug-in loading
- 88. Merge two ordered arrays
- Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
- Final review (day3)
- Leetcode solution - 01 Two Sum
猜你喜欢

Apache+php+mysql environment construction is super detailed!!!

Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation

PHP笔记超详细!!!
![[explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis](/img/df/884313a69fb1e613aec3497800f7ba.jpg)
[explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis
![[teacher Zhao Yuqiang] calculate aggregation using MapReduce in mongodb](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] calculate aggregation using MapReduce in mongodb

Qt读写Excel--QXlsx插入图表5

Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow

Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)

多线程与高并发(7)——从ReentrantLock到AQS源码(两万字大章,一篇理解AQS)

@Import annotation: four ways to import configuration classes & source code analysis
随机推荐
BeanDefinitionRegistryPostProcessor
智牛股--03
Maximum likelihood estimation, divergence, cross entropy
Final review (day3)
ansible防火墙firewalld设置
mapbox尝鲜值之云图动画
Installation du plug - in CAD et chargement automatique DLL, Arx
Solve the problem that Anaconda environment cannot be accessed in PowerShell
JDBC connection database steps
Niuke JS separator
88. 合并两个有序数组
[video of Teacher Zhao Yuqiang's speech on wot] redis high performance cache and persistence
[branch and cycle] | | super long detailed explanation + code analysis + a trick game
Introduction to redis using Lua script
Final review (Day6)
Es remote cluster configuration and cross cluster search
2022.6.30DAY591
[teacher Zhao Yuqiang] calculate aggregation using MapReduce in mongodb
CAD插件的安裝和自動加載dll、arx
项目总结--04