Skip to content

Instantly share code, notes, and snippets.

@ahamid
Created December 18, 2011 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahamid/1494688 to your computer and use it in GitHub Desktop.
Save ahamid/1494688 to your computer and use it in GitHub Desktop.
mirror unfuddle repo to bitbucket
#!/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 git@bitbucket.org:$bbacct/$bb.git
echo "Pushing mirror of Unfuddle $ufacct:$uf to Bitbucket $bbacct:$bb..."
git push --mirror bitbucket
cd ..
@ahamid
Copy link
Author

ahamid commented Dec 18, 2011

# make sure ssh keys are set up first
./transfer.sh accountname srcreponame [dstreponame]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment