From: Øyvind A. Holm Date: Sun, 24 Apr 2011 22:15:20 GMT Subject: Announcing Gitspread - Spread Git commits to several servers with a single push Message-ID: 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 . License: GNU General Public License version 3 or later Regards, Øyvind