I am interested in setting up a local git repository to be a mirror of a remote repo. I read several potentially related posts, however the main difference is that I need read and write access on both repositories.
In most cases, users will work against Repo A, however there will be times when they will work against Repo B, and they need to stay in sync through traffic between servers.
What is the best approach here?
Phil
UPDATE . How can this complicate the situation, I will add a note. The ideal way in this environment for developers to switch between the main repositories is to change the IP address of the repo via / etc / hosts - -eg Repo A is called gitserver when in the office and Repo B is called gitserver when uninstalling.
source share