I am trying to get the hang of git. We have a main git repository that is our master website, we pull data from it but cannot push to it. We also have individual repositories for each developer. Now we want to create a repository that can pull from the main repository, but can be pushed to by a select few of developers.
The scenario is that two developers are working on a project, and need to be able to share changes and also have a log for what they are doing. How do I do so using git?
You could just use a network share and do a
git clone <central_repo> <network_share_path> --bareThis will clone your centralized repository into your shared location and set it up so it can receive pushes.
You then only have to add it to your remotes on all development machines and you are set:
git remote add development <network_share_path>As long as both your developers can write to that directory you have set up a shared repository.