首次发布的Git工作流程 [英] Git workflow for getting to first release

查看:52
本文介绍了首次发布的Git工作流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用git,我了解分支以及如何在网站上线后的日常开发中使用master,develop,feature branch等.

Using git, I understand branching and how to use master, develop, feature branches etc. in day to development for a website after it has gone live.

但是对于最初要进行的大部分开发工作(约12周),以便使网站首次发布,我不确定最佳的分支策略.

But for the initial big chunk of development that takes place (12 weeks or so) in order to get the sites first release build I'm not so sure of the best branching strategy.

在此阶段直接提交并推送给master可以吗?如果不是,那么在第一个发行版之前的初始开发阶段,git的首选策略是什么.

Is it fine in this stage to commit and push directly on master? If not, what is the preferred strategy for git during the initial development phase before the first release.

推荐答案

在此阶段直接提交并推送到master上就可以了

Is it fine in this stage to commit and push directly on master

从理论上讲,否: master 只能包含稳定的可用版本的代码.
最好是在生产环境中运行(您网站的实时版本)

In theory, No: master could only contain stable usable version of your code.
Preferably what is running in production (the live version of your website)

如下面的查尔斯评论所述,这取决于克隆存储库时默认情况下要执行的操作

As charles comments below, it depends what you want to do by default when cloning a repo

在第一个发行版之前的初始开发阶段,git的首选策略是什么.

what is the preferred strategy for git during the initial development phase before the first release.

您可以在自己的分支上隔离该集成阶段,这是一个或多个

You can isolate that integration phase on its own branch, which is the result of the merge of one or several feature branch, in order to test all features together.

第一个版本将显示:

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