Skip to content

Instantly share code, notes, and snippets.

@JCL324
Forked from timmillwood/dcmc-git.sh
Last active August 29, 2015 14:06
Show Gist options
  • Save JCL324/9aa41c1c30a85b5907a3 to your computer and use it in GitHub Desktop.
Save JCL324/9aa41c1c30a85b5907a3 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