当前位置:网站首页>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工具上解决比较友好。
边栏推荐
- Intel's new GPU patent shows that its graphics card products will use MCM Packaging Technology
- Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
- Final review (Day6)
- [set theory] relational closure (reflexive closure | symmetric closure | transitive closure)
- Final review (Day5)
- PHP notes are super detailed!!!
- [advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer
- ansible防火墙firewalld设置
- 【无标题】
- 卷积神经网络CNN中的卷积操作详解
猜你喜欢

Understand expectations (mean / estimate) and variances

一起上水碩系列】Day 9

Jedis source code analysis (II): jediscluster module source code analysis

Maximum likelihood estimation, divergence, cross entropy

MySQL 5.7.32-winx64 installation tutorial (support installing multiple MySQL services on one host)

Apt update and apt upgrade commands - what is the difference?

Method of finding prime number

How to create and configure ZABBIX

智牛股项目--04

Redhat7 system root user password cracking
随机推荐
[teacher Zhao Yuqiang] Cassandra foundation of NoSQL database
一起上水碩系列】Day 9
[teacher Zhao Yuqiang] the most detailed introduction to PostgreSQL architecture in history
[escape character] [full of dry goods] super detailed explanation + code illustration!
Life is a process of continuous learning
卷积神经网络CNN中的卷积操作详解
为什么网站打开速度慢?
QT read write excel -- qxlsx insert chart 5
Solve the problem of automatic disconnection of SecureCRT timeout connection
智牛股项目--04
[untitled]
How does win7 solve the problem that telnet is not an internal or external command
Disruptor learning notes: basic use, core concepts and principles
[advanced pointer (1)] | detailed explanation of character pointer, pointer array, array pointer
Jedis source code analysis (II): jediscluster module source code analysis
Simple handwritten ORM framework
[teacher Zhao Yuqiang] MySQL high availability architecture: MHA
[function explanation (Part 2)] | [function declaration and definition + function recursion] key analysis + code diagram
Synthetic keyword and NBAC mechanism
智牛股--03