My branch structure is this way:
---master---feature(commit-x)---task1(commit-y)---task2---
Since task1 is complete, I want to merge the branch to the feature branch and delete it.
What happens to the branch task2 in such a case?
I think the structure will be:
---master---(commit-x)---(commit-y)---task2---
                 |
                 |---feature(merged on task1)
But, then later on completion of task2, I would like to merge it on the feature  branch.
How can I accomplish that, please suggest?
 
    