技术控

    今日:21| 主题:52645
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Push to production three times faster with the right git workflow

[复制链接]
别碰我D人 发表于 2016-9-30 17:26:18
186 4

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
On the project I work, we needed to deploy in production several times a day, for business purposes, but the deployments took one and half hours. Indeed, we are several teams working along with the Scrum methodology, so our product owners are validating all our work. Thus we spent two thirds of our time to identify and isolate what has actually been validated and is ready to go in production.
   We created a new git workflow, inspired by the article A successful Git branching model , and adapted to the Scrum methodology. It helped us to organise our deployment process and to reduce our deployment time to 30 minutes.
   
Push to production three times faster with the right git workflow-1 (successful,actually,business,identify,purposes)

  Our workflow is composed by 3 main branches :
  
       
  • The develop branch can be seen as the Truth : every line of code has been tested and validated by the client.   
  • The staging branch corresponds to the validation environment.   
  • The release branch contains the last version of your website in production.   
  • The feature branches are temporary.  
  The Git journey of a simple feature

  Let’s assume Alice and Bob develop an e-commerce website and she needs to register the shipping address of her customers. This feature could be splitting into 3 user-stories : adding a shipping address, editing it and removing it. All the three tickets are in the Sprint Backlog.
  She starts with the first user story, adding an address. The corresponding ticket is now in the Doing Column.
  [code]git checkout develop && git pull origin/develop
// She creates a new feature branch and a new user story one
git checkout -b feature/shipping-address
git checkout -b add-address
// She codes and commits[/code]

Push to production three times faster with the right git workflow-2 (successful,actually,business,identify,purposes)

  In the meantime, Bob wants to help Alice and starts coding the address deletion.
  [code]// He pulls the last version of the shared branch
git checkout feature/shipping-address
git pull origin/feature/shipping-address
// He creates a new branch for the user story
git checkout -b delete-address
// He codes and commits[/code]
123下一页
友荐云推荐




上一篇:iOS开发-选择城市
下一篇:【Android】Splash实践 09/30
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

落叶、锁秋 发表于 2016-9-30 18:50:45
前排支持下
回复 支持 反对

使用道具 举报

outinloowly 发表于 2016-10-1 23:16:59
我要让全世界知道这回帖被谁承包了
回复 支持 反对

使用道具 举报

落幕後得哀傷 发表于 2016-11-2 06:15:26
路过 帮顶 嘿嘿
回复 支持 反对

使用道具 举报

kingwin2014 发表于 2016-11-4 14:35:07
别碰我D人人气很旺!
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2017 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表