Git开发-测试-生产分支过程 [英] Git Development-Test-Production branches proccess
问题描述
在这个过程中我很有趣:
首先,我想在我的开发分支中制作任何东西,然后将其推送到测试(主)"分支,并因此推送到"生产"中.
对我来说,过程:
-
初始化提交
然后,从master init commit中创建prod分支
然后,从master init commit使dev分支 -
检出到开发部门
然后,做任何
然后,提交
然后,结帐给主人
然后,与dev 合并 -
进行测试
然后,提交
然后,结帐至产品
然后,与master
合并
这是使用这种方法的正确方法吗?如果没有,请说明正确的过程.
非常感谢
您正在寻找与
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:
init commit
then, make prod branch from master init commit
then, make dev branch from master init commitcheckout to dev branch
then, do any
then, commit
then, checkout to master
then, merge with devDo 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屋!