In development, we often come across a scenario like this:
In a MVC web development, stuff A may mainly develop View, while stuff B may mainly develop Controller, then a feature branch like feature/account maybe shared by A and B to cooperate the development of account.
If we manage feature branches like above:
Question 1: Is it recommended that sharing feature branches between stuffs between stuffs?
There's another way to manage feature branches, like this:
- stuff A manage a branch named
feature/account-view - stuff B manage a branch named
feature/account-controller
However, If we manage feature branches like account-view and account-controller, we need to merge these two feature branches first before doing some testing jobs. And it seems the workflow becomes more complicated.
Question 2: Which branch management is better? feature/account or feature/account-view feature/account-controller