且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Git开发-测试-生产分支过程

更新时间:2023-01-18 22:27:15

您正在寻找与

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