# Linking two remote repositories

2 messages from 2010-03-12 to 2010-03-12. Participants: Pavel, Jens Lehmann.
Thread: https://gitlist.dev/t/22997

## Pavel, 2010-03-12 14:09

Subject: Linking two remote repositories
Message-ID: <loom.20100312T145901-192@post.gmane.org>
URL: https://gitlist.dev/e/loom.20100312T145901-192%40post.gmane.org

```
Hi All,
I'm just investigating of using git for following:
We have two development teams in far direction from each other and very slow
network connection between them. Currently they are using one Subversion
repository on one side, but committing from other side is very-very slow. 

The idea is to setup two git repositories in two locations and developers will
commit in there local repository. But what I can't figure out it's how to
connect those repositories between each other, I do not want to have two
"special" people to push between remote repositories. 
Is there any ideas how to connect two repositories and have actual code versions
on both of them ?

Thanks, Pavel.

```

## Jens Lehmann, 2010-03-12 16:10

Subject: Re: Linking two remote repositories
Message-ID: <4B9A675F.6050309@web.de>
URL: https://gitlist.dev/e/4B9A675F.6050309%40web.de
In-Reply-To: <loom.20100312T145901-192@post.gmane.org>

```
Am 12.03.2010 15:09, schrieb Pavel:
> Hi All,
> I'm just investigating of using git for following:
> We have two development teams in far direction from each other and very slow
> network connection between them. Currently they are using one Subversion
> repository on one side, but committing from other side is very-very slow. 
> 
> The idea is to setup two git repositories in two locations and developers will
> commit in there local repository. But what I can't figure out it's how to
> connect those repositories between each other, I do not want to have two
> "special" people to push between remote repositories. 
> Is there any ideas how to connect two repositories and have actual code versions
> on both of them ?

Having a similar setup at my dayjob, I think it should be sufficient to
have only one git server (maybe at the location where your svn-server is
now). As git keeps a local copy of the whole repo operations like commit,
diff and merge are fast and independent of network speed. Only clone, fetch
and push go over the slow network connection, but for us this is fast
enough (and a lot faster than our old RCS based VCS, which was basically
unusable for this scenario).

```
