Reputation: 729
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:
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?
Upvotes: 2
Views: 584
Reputation: 84343
There's no "right" answer to this question. The right workflow is whatever works for you and your team.
Having said that, if you only have two developers, I'm not really sure why you feel you need more than one bare repository. The easiest thing to do in this case is:
Have one central repository on your NAS.
Developers store clones on their workstations, rather than on a network drive.
Small teams usually don't need the complexity of a pull-request model. Your mileage may vary.
Upvotes: 1