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

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

From
Øyvind A. Holm <sunny@sunbase.org>
Date
Apr 24, 2011, 22:15 UTC
Message-ID
<BANLkTikuCfnSuY2r+YzWu1PegP3baniOjA@mail.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

Next: Jakub Narebski
Message 1 of 3 in “Announcing Gitspread - Spread Git commits to several servers with a single push”
  1. Øyvind A. HolmApr 24, 2011
  2. Jakub NarebskiApr 25, 2011
  3. Øyvind A. HolmApr 25, 2011

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.