Created
December 18, 2011 22:34
-
-
Save ahamid/1494688 to your computer and use it in GitHub Desktop.
mirror unfuddle repo to bitbucket
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/sh | |
ufacct=$1 | |
bbacct=$ufacct | |
uf=$2 | |
bb=${3:-$uf} | |
echo "Cloning Unfuddle repo: $ufacct:$uf" | |
git clone --mirror git@$ufacct.unfuddle.com:$ufacct/$uf.git | |
cd $uf.git | |
echo "Adding Bitbucket remote to $uf workspace: $bb" | |
git remote add bitbucket [email protected]:$bbacct/$bb.git | |
echo "Pushing mirror of Unfuddle $ufacct:$uf to Bitbucket $bbacct:$bb..." | |
git push --mirror bitbucket | |
cd .. |
Author
ahamid
commented
Dec 18, 2011
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment