title: Two-way git mirror
body: <p>I'm interested in setting up a local git repo to be a mirror of a remote repo. I've read a few potentially related posts, however the key difference is that I need read-write access on both repos.</p>
  <p>Most of the time, users will work against Repo A, however there will be times when they're working against Repo B, and these need to stay in sync via server-to-server traffic.</p>
  <p>What's the best approach here?</p>
  <p>As it may complicate the situation, I'll add a note. The ideal way in this environment for devs to switch between master repos is to change the IP address of the repo via <code>/etc/hosts</code> - e.g. Repo A is called &quot;gitserver&quot; when in the office and Repo B is called &quot;gitserver&quot; when remote.</p>