Skip to content

Instantly share code, notes, and snippets.

@ahamid ahamid/transfer.sh
Created Dec 18, 2011

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

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
You can’t perform that action at this time.