如何在不使用release分支的情况下使用git flow? [英] How to use git flow without using release branch?

查看:120
本文介绍了如何在不使用release分支的情况下使用git flow?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git flow 中有几个分支. 例如

There are several branches available in git flow. such as

  • feature/
  • release/
  • support/
  • hotfix/
  • bugfix/
  • feature/
  • release/
  • support/
  • hotfix/
  • bugfix/

我不需要release/分支,而是想将staging分支(开发分支)直接合并到master. 使用 git flow 实现此目标的最佳方法是什么?

I do not need release/ branch and want to merge staging branch (a development branch) directly to master. What is the best way to achieve this using git flow?

推荐答案

我认为,对于生产或您的 master 分支中的每个发行版,都必须创建发行分支

I think this would be mandatory to make release branch for every release in production or your master branch

因此,没有其他方法可以做到这一点.

So There is no alternative way to do this.

简单的流程如下:

  1. 在您的feature分支上工作
  2. 完成工作并将您的feature分支合并到暂存
  3. staging创建release分支.
  4. 添加版本和标签,然后将其合并到masterstaging两者中.
  1. Work on your feature branch
  2. Finish work and merge your feature branch to staging
  3. Make release branch from staging.
  4. Add version and tag than merge it to master amd staging both.

我认为这对您会有所帮助.

I think this would be helpful for you.

这篇关于如何在不使用release分支的情况下使用git flow?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆