当前位置:网站首页>一切的源头,代码分支策略的选择
一切的源头,代码分支策略的选择
2022-07-26 02:55:00 【壹小俊】
记得大概是一年前吧,我与好友老吴喝茶聊天时,讨论到:高效的持续交付体系,必定需要一个合适的代码分支策略。
我告诉老吴:“采用不同的代码分支策略,意味着实施不同的代码集成与上线流程,这会影响整个研发团队每日的协作方式,因此研发团队通常会很认真地选择自己的策略。"
老吴是一名有多年开发经验的资深架构师,当时正好要接手一个框架团队,从个人贡献者向团队管理者转型。他个人对代码管理工具可谓熟之又熟,甚至连“老古董”的CVS都可以跟你聊半天。但他在为团队制定代码分支管理策略时,还是慎之又慎,足见其重要性。
最后我们发现,要确定选用哪种代码分支管理策略,需要先假设几个问题,这几个问题有了答案,也就代表你找到了适合的方向。你需要思考的几个问题如下:
1.Google和Facebook这两个互联网大咖都在用主干开发(Trunk Based Development简称TBD),我们是不是也参照它俩,采用主干开发分支策略?
2.用Google搜索一下,会发现有个排名很靠前的分支策略,叫“Asuccessful Git branching model”(简称GitFlow),它真的好用吗?团队可以直接套用吗?
3.GitHub和GitLab这两个当下最流行的代码管理平台,各自推出了GitHubFlow和GitLabFlow,它们有什么区别?适合我使用吗?
4.像阿里、携程和美团点评这样国内知名的互联网公司,都在用什么样的分支策略?
今天,我想再沿着当时的思考路径,和你一起回顾和总结一下,希望能够带你全面了解代码分支策略,帮助你做出合适的选择。
谈谈主干开发(TBD)
主干开发是一
边栏推荐
- 【C语言】深入理解 整型提升 和 算术转换
- 规范自己debug的流程
- Pinia plugin persist, a data persistence plug-in of Pinia
- Study notes of pytorch deep learning practice: convolutional neural network (Advanced)
- ERROR: could not extract tar starting at offset 000000000000020980+9231072+2
- Brief introduction and use of NPM link
- Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 1)
- Arthas view the source code of the loaded class (JAD)
- 墨天轮高分技术文档分享——数据库安全篇(共48个)
- Cycle and branch (I)
猜你喜欢

Detailed explanation of extended physics informedneural networks paper

AMD64(x86_64)架构abi文档:中

图像识别(七)| 池化层是什么?有什么作用?

Have you ever seen this kind of dynamic programming -- the stock problem of state machine dynamic programming (Part 1)

(九)属性自省

【方向盘】使用IDEA的60+个快捷键分享给你,权为了提效(Live Template&Postfix Completion篇)

第3章业务功能开发(删除线索)

HLS Experiment 1 -- multiplier

Image recognition (VII) | what is the pooling layer? What's the effect?

Difference between soft link and hard link
随机推荐
MySQL(4)
微信公众号互助、开白群,小白报团取暖
(pc+wap) dream weaving template vegetable and fruit websites
案例:使用keepalived+Haproxy搭建Web群集
ES6高级-利用构造函数继承父类属性
Be highly vigilant! Weaponization of smartphone location data on the battlefield
[translation] announce Vites 13
如何加速矩阵乘法
Recorded target detection NMS (non maximum suppression)
JS get the time composition array of two time periods
Article setting top
规范自己debug的流程
AMD64(x86_64)架构abi文档:中
[translation] cloud like internal load balancer for kubernetes?
Nahamcon CTF 2022 babyrev reverse analysis
ES6高级-利用原型对象继承方法
Exclusive interview with ringcentral he Bicang: empowering future mixed office with innovative MVP
Project management: lean management method
【方向盘】工具提效:Sublime Text 4的常用快捷键合集
Manifold learning