I am currently using GIT with source Tree to manage my source control for a php web system.
My Previous experience with GIT is with a none web based environment and there for I understand the use of branches and remotes etc.
But I am a little confused when it comes to setting this up for web development.
Scenario.
I have a live subdomain
live.mysite.com
I have a dev subdomain
dev.mysite.com
I create branches off the dev site for stories. staff checkout the story branches from the dev site, complete and commit. Each story is then checked out by a tester and tested, once completed the story is merged to the dev master and eventually dev is merged with live.
This is a very broad overview and my confusion comes with the domains. lets say i have 10 staff members. They will need to view there changes as they do them the same with any development. Using the above method wouldnt work because all staff members would be deploying to the dev site.
To get round this i have been creating a subdomain for each staff member.
rob.mysite.com
dave.mysite.com
Now the staff can each work on there own domain independently and push to different remotes when needed. i.e
make changes on rob.mysite.com push rob to dev push dev to live etc
Although this sort of works i feel it is not correct.
It almost breaks the whole point of branches as all staff would be branching from there own repository.
Is this correct and am I just a few steps short or am I completely off?