I am not sure if this is the correct way of calling this branch management. I will give you these example to explain myself:
This is how i worked some of my projects: