Skip to content

Instantly share code, notes, and snippets.

@timmillwood
Created January 22, 2013 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save timmillwood/4593250 to your computer and use it in GitHub Desktop.
Save timmillwood/4593250 to your computer and use it in GitHub Desktop.
#!/bin/bash
dc_git="$1"
mc_git="$2"
git clone --mirror ${dc_git} dc
cd dc
git remote add mc ${mc_git}
git push --mirror mc
cd ..
rm -rf dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment