当前位置:网站首页>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工具上解决比较友好。
边栏推荐
- Kubernetes cluster environment construction & Deployment dashboard
- Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
- pytorch 多分类中的损失函数
- [teacher Zhao Yuqiang] MySQL flashback
- The server data is all gone! Thinking caused by a RAID5 crash
- How to create your own repository for software packages on Debian
- [teacher Zhao Yuqiang] index in mongodb (Part 2)
- Ext4 vs XFS -- which file system should you use
- 理解 期望(均值/估计值)和方差
- Txt document download save as solution
猜你喜欢

Es remote cluster configuration and cross cluster search

kubernetes资源对象介绍及常用命令(五)-(ConfigMap)
![[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation](/img/c2/991b8febd262cf9237017adc9d1221.jpg)
[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation
![[Shangshui Shuo series together] day 10](/img/a3/e8b9df588bef67ead925813a75c8c0.png)
[Shangshui Shuo series together] day 10

Method of finding prime number

Code generator - single table query crud - generator

Clickhouse learning notes (2): execution plan, table creation optimization, syntax optimization rules, query optimization, data consistency

Understand the first prediction stage of yolov1
![[trivia of two-dimensional array application] | [simple version] [detailed steps + code]](/img/84/98c1220d0f7bc3a948125ead6ff3d9.jpg)
[trivia of two-dimensional array application] | [simple version] [detailed steps + code]

Analysis of Clickhouse mergetree principle
随机推荐
Apple submitted the new MAC model to the regulatory database before the spring conference
理解 期望(均值/估计值)和方差
[function explanation (Part 1)] | | knowledge sorting + code analysis + graphic interpretation
88. 合并两个有序数组
项目总结--04
Sorry, this user does not exist!
[teacher Zhao Yuqiang] kubernetes' probe
pytorch 搭建神经网络最简版
Detailed explanation of findloadedclass
期末复习(DAY6)
Multithreading and high concurrency (7) -- from reentrantlock to AQS source code (20000 words, one understanding AQS)
[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer
Troubleshooting of 32GB Jetson Orin SOM failure to brush
Solve the 1251 client does not support authentication protocol error of Navicat for MySQL connection MySQL 8.0.11
[teacher Zhao Yuqiang] redis's slow query log
Apt update and apt upgrade commands - what is the difference?
How to create your own repository for software packages on Debian
The server data is all gone! Thinking caused by a RAID5 crash
BeanDefinitionRegistryPostProcessor
Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology