# Announcing Gitspread - Spread Git commits to several servers with a single push

3 messages from 2011-04-24 to 2011-04-25. Participants: Øyvind A. Holm, Jakub Narebski.
Thread: https://gitlist.dev/t/27170

## Øyvind A. Holm, 2011-04-24 22:15

Subject: Announcing Gitspread - Spread Git commits to several servers with a single push
Message-ID: <BANLkTikuCfnSuY2r+YzWu1PegP3baniOjA@mail.gmail.com>
URL: https://gitlist.dev/e/BANLkTikuCfnSuY2r%2BYzWu1PegP3baniOjA%40mail.gmail.com

```
A project is often stored on several hosting services like Gitorious,
GitHub, repo.or.cz or similar for backup purposes. Ideally, all these
repositories should be updated at the same time when pushing. If you’re
using a slow Internet connection, like a mobile connection from a
laptop, this process tends to be rather slow because the commits have to
be pushed several times over a slow connection. Gitspread aims to solve
this by pushing the commits once to a server with a fast connection, and
pushing the commits from there to all the defined remotes.

Setup
-----

- Create a directory on a server with a fast connection where multiple
  repositories can be stored
- Create a bare repository for each project under that directory
- Copy the post-receive hook script to the hooks/ directory in the
  repositories
- Define all necessary remotes using SSH push URLs
- Start the gitspreadd daemon in a shell where ssh-agent is activated
- Set up a git remote on the local computer with the slow connection
  pointing to the repository on the server

That’s all there is. From now on, you can push to the defined remote and
let the remote server with a faster connection take care of spreading
the commits around.

Source code
-----------

Gitspread can be cloned from the following repositories:

- git://gitorious.org/sunny256/gitspread.git
- git://github.com/sunny256/gitspread.git
- git://repo.or.cz/gitspread.git

Bugs and suggestions
--------------------

Bugs and suggestions can be filed in the issue tracker at
<https://github.com/sunny256/gitspread/issues> .

License: GNU General Public License version 3 or later

Regards,
Øyvind

```

## Jakub Narebski, 2011-04-25 10:35

Subject: Re: Announcing Gitspread - Spread Git commits to several servers with a single push
Message-ID: <m3k4eiwrfe.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3k4eiwrfe.fsf%40localhost.localdomain
In-Reply-To: <BANLkTikuCfnSuY2r+YzWu1PegP3baniOjA@mail.gmail.com>

```
Øyvind A. Holm <sunny@sunbase.org> writes:

> A project is often stored on several hosting services like Gitorious,
> GitHub, repo.or.cz or similar for backup purposes. Ideally, all these
> repositories should be updated at the same time when pushing. If you’re
> using a slow Internet connection, like a mobile connection from a
> laptop, this process tends to be rather slow because the commits have to
> be pushed several times over a slow connection. Gitspread aims to solve
> this by pushing the commits once to a server with a fast connection, and
> pushing the commits from there to all the defined remotes.
[...]

Could you please add short info about this tool to

  https://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools

page on Git Wiki?

Thanks in advance
-- 
Jakub Narebski
Poland
ShadeHawk on #git

```

## Øyvind A. Holm, 2011-04-25 11:31

Subject: Re: Announcing Gitspread - Spread Git commits to several servers with a single push
Message-ID: <BANLkTim4g8q=RFiJQjhs+UQARakvioeX9w@mail.gmail.com>
URL: https://gitlist.dev/e/BANLkTim4g8q%3DRFiJQjhs%2BUQARakvioeX9w%40mail.gmail.com
In-Reply-To: <m3k4eiwrfe.fsf@localhost.localdomain>

```
On 25 April 2011 12:35, Jakub Narebski <jnareb@gmail.com> wrote:
> Øyvind A. Holm <sunny@sunbase.org> writes:
> > [Announcement about the Gitspread tool]
>
> Could you please add short info about this tool to
>
>  https://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools
>
> page on Git Wiki?

Done, it ended up in the Hooks section. Thanks for reminding me about
that page.

Regards,
Øyvind

```
