master分支和release分支是做什么用的? [英] What is the master branch and release branch for?

查看:2485
本文介绍了master分支和release分支是做什么用的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的英语不够好,无法理解git flow

My English is not good enough to understand the explanation of git flow

据我了解.

Master branch用于成品,用户可以在市场上下载.

Master branch is for ready-product which can be downloaded on the market by users.

但是有一个release branches我不知道这些分支是为谁发行的?

But there is an release branches I have no ideas theses branches is release for whom ?

为客户发布?还是质量检查?

Release for customers ? or for QA?

http://www.flickr.com/photos/appleboy/5488984404/

推荐答案

一旦develop获得了足够的功能以进行发布(或临近预定的发布日期),就可以从develop分支出一个分支.创建此分支将开始下一个发行周期,因此在此之后不能添加任何新功能.只有错误修复,文档生成以及其他面向发行版的任务才应进入该分支( (包括测试在内).一旦准备好发布,该发行版将被合并到主版本中并用版本号进行标记.此外,应该将其重新合并以进行开发,自发行版发布以来可能已经进行了改进.

Once develop has acquired enough features for a release (or a predetermined release date is approaching), you fork a release branch off of develop. Creating this branch starts the next release cycle, so no new features can be added after this point.Only bug fixes, documentation generation, and other release-oriented tasks should go in this branch(which includes testing also). Once it's ready to ship, the release gets merged into master and tagged with a version number. In addition, it should be merged back into develop, which may have progressed since the release was initiated.

使用专门的分支来准备版本,使一个团队可以完善​​当前版本,而另一个团队可以继续开发下一个版本的功能.它还创建了明确定义的开发阶段(例如,很容易地说,本周我们正在为4.0版本做准备",并可以在存储库的结构中实际看到它).

Using a dedicated branch to prepare releases makes it possible for one team to polish the current release while another team continues working on features for the next release. It also creates well-defined phases of development (e.g., it's easy to say, "this week we're preparing for version 4.0" and to actually see it in the structure of the repository).

更多信息此处分支机构

这篇关于master分支和release分支是做什么用的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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