如何在不使用release分支的情况下使用git flow? [英] How to use git flow without using release branch?
本文介绍了如何在不使用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.
简单的流程如下:
- 在您的
feature
分支上工作 - 完成工作并将您的
feature
分支合并到暂存 - 从
staging
创建release
分支. - 添加版本和标签,然后将其合并到
master
和staging
两者中.
- Work on your
feature
branch - Finish work and merge your
feature
branch to staging - Make
release
branch fromstaging
. - Add version and tag than merge it to
master
amdstaging
both.
我认为这对您会有所帮助.
I think this would be helpful for you.
这篇关于如何在不使用release分支的情况下使用git flow?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文