Git开发-测试-生产分支过程 [英] Git Development-Test-Production branches proccess

查看:108
本文介绍了Git开发-测试-生产分支过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这个过程中我很有趣:

首先,我想在我的开发分支中制作任何东西,然后将其推送到测试(主)"分支,并因此推送到"生产"中.

对我来说,过程:

  1. 初始化提交
    然后,从master init commit中创建prod分支
    然后,从master init commit使dev分支

  2. 检出到开发部门
    然后,做任何
    然后,提交
    然后,结帐给主人
    然后,与dev

  3. 合并
  4. 进行测试
    然后,提交
    然后,结帐至产品
    然后,与master

  5. 合并

这是使用这种方法的正确方法吗?如果没有,请说明正确的过程.

非常感谢

解决方案

您正在寻找与

I am interesting in this process:

First I'd like to make any in my development branch, than it should be pushed to Test (master) branch and, therefore, to production.

For me the process:

  1. init commit
    then, make prod branch from master init commit
    then, make dev branch from master init commit

  2. checkout to dev branch
    then, do any
    then, commit
    then, checkout to master
    then, merge with dev

  3. Do tests
    then, commit
    then, checkout to prod
    then, merge with master

Is this a right way to use this way or not? If not, explain please the right process.

Thanks a lot

解决方案

You are looking for something similar to the git flow workflow.
Read all about it in the following post by Vincent Driessen

这篇关于Git开发-测试-生产分支过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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