I having been using git flow
for a while now. I am curious to learn about a specific use case.
For one of my projects I have a ticket for a new website feature. This ticket depends on many sub-tasks. I would like to create a feature branch for the main ticket, and then for each sub-task create a feature branch off of the parent feature branch.
Let's assume I have a ticket PROJ-500 and I create a feature branch for it
git flow feature start PROJ-500
Then I want to integrate tickets PROJ-501
through PROJ-515
into PROJ-500
before integrating the whole thing into develop
. Is there a way for me to do something like
git flow feature start PROJ-511 -b PROJ-500
Then over time these sub-tasks get completed and when their feature is finished, the branch is merged into PROJ-500
.
git flow feature finish PROJ-511
The above command would merge PROJ-511
into PROJ-500
And once all sub-tasks are completed then PROJ-500
will be finished and merged into develop
.
This way the new website feature is integrate into develop as a single unit rather than piecemeal.
git flow feature start PROJ-511 PROJ-500
? The link you posted in the comment to DerekS' answer suggests that it should. – Rajewski