We are looking to use GIT to help manage our web files as we have just hired a second developer.
We won't be using GitHub but we do have an NAS drive(shared drive) so our initial thoughts are some sort of plan like this:
- DVCS (Root)
- master (NAS)
- project 1
- project 2
- developer1 (NAS)
- project 1
- project 2
- developer2 (NAS)
- project 1
- project 2
- developer1 (local workstation)
- project 1
- project 2
- developer2 (local workstation)
- project 1
- project 2
- master (NAS)
So basically each developer would clone the master project repository to their developer repository (quality control), then they would clone this developer repository to their local repository. They would make their changes/edits and then commit and push these changes back to their developer repository for a senior developer to approve. Once they do this would be then pushed to the master.
I am not sure if this is the correct approach or whether I should be using branches or i need a different workflow instead?