git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/*).

Previous: Liebich, Wolfgang
Message 2 of 2 in “What is the best way to synchronize two *bare* repositories with each other?”
  1. Liebich, WolfgangNov 24, 2009
  2. Alex RiesenNov 25, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.