Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
Script to mirror the SF git repo to github, gitorious, bitbucket, assembla and google code
# Copyright (C) 2010 Brady Miller <>
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# Initial set up:
# 1) Create directory /git/sfMirror
# 2) Move to /git/sfMirror directory
# 3) run "git clone --mirror git://"
# 4) run "git remote add github"
# 5) run "git remote add gitorious"
# 6) run "git remote add googlecode"
# 7) run "git remote add bitbucket"
# 8) run "git remote add assembla"
# 9) run "git remote add codeplex"
# 10) Place this script in /git and set up cron for every 30 minutes
# go to the local git mirror/bare directory
cd /git/sfMirror/openemr.git
# download most recent changes from sourceforge git repository
git fetch
# push new changes to github
git push --all github
git push --tags github
# push new changes to gitorious
git push --all gitorious
git push --tags gitorious
# push new changes to bitbucket
git push --all bitbucket
git push --tags bitbucket
# push new changes to assembla
git push --all assembla
git push --tags assembla
# push new changes to google code
env GIT_SSL_NO_VERIFY=true git push --all googlecode
env GIT_SSL_NO_VERIFY=true git push --tags googlecode
# push new changes to codeplex
env GIT_SSL_NO_VERIFY=true git push --all codeplex
env GIT_SSL_NO_VERIFY=true git push --tags codeplex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.