当前位置:网站首页>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工具上解决比较友好。
边栏推荐
- JS implements the problem of closing the current child window and refreshing the parent window
- How to create your own repository for software packages on Debian
- The programmer shell with a monthly salary of more than 10000 becomes a grammar skill for secondary school. Do you often use it!!!
- [untitled]
- Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
- [teacher Zhao Yuqiang] use Oracle's tracking file
- Disruptor learning notes: basic use, core concepts and principles
- 卷积神经网络CNN中的卷积操作详解
- 【一起上水硕系列】Day 7 内容+Day8
- [untitled]
猜你喜欢

项目总结--01(接口的增删改查;多线程的使用)

一起上水硕系列】Day 9

pytorch 搭建神经网络最简版
![[Zhao Yuqiang] deploy kubernetes cluster with binary package](/img/cc/5509b62756dddc6e5d4facbc6a7c5f.jpg)
[Zhao Yuqiang] deploy kubernetes cluster with binary package
![[set theory] relational closure (reflexive closure | symmetric closure | transitive closure)](/img/c8/2995c503e9dabae4e2cc704449e04f.jpg)
[set theory] relational closure (reflexive closure | symmetric closure | transitive closure)

Analysis of the example of network subnet division in secondary vocational school

Understand the first prediction stage of yolov1

Clickhouse learning notes (2): execution plan, table creation optimization, syntax optimization rules, query optimization, data consistency
![[teacher Zhao Yuqiang] index in mongodb (Part 1)](/img/2d/277ec737f2a7065831a19d036e61e1.jpg)
[teacher Zhao Yuqiang] index in mongodb (Part 1)

Mapbox tasting value cloud animation
随机推荐
[teacher Zhao Yuqiang] MySQL flashback
How to create and configure ZABBIX
The programmer shell with a monthly salary of more than 10000 becomes a grammar skill for secondary school. Do you often use it!!!
Core principles and source code analysis of disruptor
Convolution operation in convolution neural network CNN
Analysis of Clickhouse mergetree principle
Redhat7系统root用户密码破解
C 语言文件操作函数大全 (超详细)
伯努利分布,二项分布和泊松分布以及最大似然之间的关系(未完成)
Exception when introducing redistemplate: noclassdeffounderror: com/fasterxml/jackson/core/jsonprocessingexception
chromedriver对应版本下载
Final review (Day7)
Installation of CAD plug-ins and automatic loading of DLL and ARX
Bernoulli distribution, binomial distribution and Poisson distribution, and the relationship between maximum likelihood (incomplete)
[advanced pointer (2)] | [function pointer, function pointer array, callback function] key analysis + code explanation
JDBC connection database steps
项目总结--01(接口的增删改查;多线程的使用)
[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram
项目总结--04
[teacher Zhao Yuqiang] Cassandra foundation of NoSQL database