GitFlow驱动的敏捷开发

本文介绍了GitFlow分支模型在敏捷开发中的应用,包括GitFlow的基础概念、常用命令、流程规范以及可能遇到的挑战。重点阐述了Master、Develop、Feature、Release和Hotfix等分支的使用,并强调了在多人协作中分支管理和代码审查的重要性。
摘要由CSDN通过智能技术生成

GitFlow驱动的敏捷开发

GitFlow基础

  • 分支模型

    Git开发的分支模型已经讲过很多次了,但是实践中仍然有很多误区以及很多没有实现的地方。

    分支模型文章:A successful Git branching model

  • git flow 初始化

    • 命令行

      git flow init :初始化一个git本地仓库。

      接着回答几个关于分支的问题。使用默认值即可,直接按回车键。

      $ git flow init
      
      Which branch should be used for bringing forth production releases?
          - master
      Branch name for production releases: [master]
      Branch name for "next release" development: [develop]
      
      How to name your supporting branch prefixes?
      Feature branches? [feature/]
      Bugfix branches? [bugfix/]
      Release branches? [release/]
      Hotfix branches? [hotfix/]
      Support branches? [support/]
      Version tag prefix? []
      Hooks and filters directory? [E:/NEWWORK/h5-inst-system/.git/hooks]
      
    • IDEA 插件

      Git Flow Integration :安装插件即可

      [外链图片转存失败(img-iz1i7U8C-1563181856154)(http://of0qa2hzs.bkt.clouddn.com/idea-git-flow.png)]

  • 分支与常用命令

    • Master

      master分支只有一个。

      master分支上的代码总是稳定的,随时可以发布出去。

      平时一般不在ma

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值