Created
January 31, 2013 17:27
-
-
Save nhoag/4684574 to your computer and use it in GitHub Desktop.
Migrate a Git repo. Original: https://gist.github.com/4593250
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
src_git="$1" | |
dst_git="$2" | |
git clone --mirror ${src_git} migrate | |
cd migrate | |
git remote add dst ${dst_git} | |
git push --mirror dst | |
cd .. | |
rm -rf migrate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment