当前位置:网站首页>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工具上解决比较友好。
边栏推荐
- [explain in depth the creation and destruction of function stack frames] | detailed analysis + graphic analysis
- Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation
- The most responsible command line beautification tutorial
- 伯努利分布,二项分布和泊松分布以及最大似然之间的关系(未完成)
- [teacher Zhao Yuqiang] MySQL flashback
- Yum is too slow to bear? That's because you didn't do it
- PHP笔记超详细!!!
- [Shangshui Shuo series together] day 10
- Skywalking8.7 source code analysis (II): Custom agent, service loading, witness component version identification, transform workflow
- Leetcode solution - 02 Add Two Numbers
猜你喜欢

PHP笔记超详细!!!
![[teacher Zhao Yuqiang] calculate aggregation using MapReduce in mongodb](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] calculate aggregation using MapReduce in mongodb
![[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]](/img/b0/aa5dce0bb60c50eea907de9e127d6c.jpg)
[minesweeping of two-dimensional array application] | [simple version] [detailed steps + code]

Jedis source code analysis (I): jedis introduction, jedis module source code analysis

Clickhouse learning notes (I): Clickhouse installation, data type, table engine, SQL operation
![[teacher Zhao Yuqiang] Flink's dataset operator](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[teacher Zhao Yuqiang] Flink's dataset operator

理解 期望(均值/估计值)和方差

Understand the first prediction stage of yolov1
![[Zhao Yuqiang] deploy kubernetes cluster with binary package](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[Zhao Yuqiang] deploy kubernetes cluster with binary package

Qt读写Excel--QXlsx插入图表5
随机推荐
[video of Teacher Zhao Yuqiang's speech on wot] redis high performance cache and persistence
【无标题】
Pytorch dataloader implements minibatch (incomplete)
Convolution operation in convolution neural network CNN
PHP笔记超详细!!!
期末复习(DAY6)
[untitled]
Code generator - single table query crud - generator
Solve the 1251 client does not support authentication protocol error of Navicat for MySQL connection MySQL 8.0.11
1. 兩數之和
[Zhao Yuqiang] deploy kubernetes cluster with binary package
Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
Ext4 vs XFS -- which file system should you use
Crontab command usage
[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer
Yum is too slow to bear? That's because you didn't do it
[untitled]
[teacher Zhao Yuqiang] Alibaba cloud big data ACP certified Alibaba big data product system
PHP notes are super detailed!!!
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]