Re: What is the best way to synchronize two *bare* repositories with each other?
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Nov 25, 2009, 10:14 UTC
- Message-ID
- <81b0412b0911250214nb97f997h686a10622fbf3e01@mail.gmail.com>
- In-Reply-To
- <7FF082147E322048955113B6CB87A7C0081731C659@MCHP058A.global-ad.net>
On Tue, Nov 24, 2009 at 22:19, Liebich, Wolfgang <wolfgang.liebich@siemens-enterprise.com> wrote:
Show 6 quoted lines
> 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/*).