Skip to content

Instantly share code, notes, and snippets.

@timmillwood
Created October 11, 2012 09:58
Show Gist options
  • Save timmillwood/3871360 to your computer and use it in GitHub Desktop.
Save timmillwood/3871360 to your computer and use it in GitHub Desktop.
script to migrate DC git repo to MC
#!/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