From: Alex Riesen Date: Wed, 25 Nov 2009 10:14:20 GMT Subject: Re: What is the best way to synchronize two *bare* repositories with each other? Message-ID: <81b0412b0911250214nb97f997h686a10622fbf3e01@mail.gmail.com> In-Reply-To: <7FF082147E322048955113B6CB87A7C0081731C659@MCHP058A.global-ad.net> On Tue, Nov 24, 2009 at 22:19, Liebich, Wolfgang wrote: > Hi, > Let's say I have two bare git repositories, bareA and bareB. > I also have a third non-bare repo, lets call it workA. Coworkers also have their working repositories, they all > synchronize back to repoA. > My work repo can only synchronize directly with repoB. > What is the best way to keep repoA and repoB synchronized to each other? Take a look at "--mirror" option of "git clone" (it sets up a remote with references mapping like this: refs/*:refs/*).