Skip to content

Instantly share code, notes, and snippets.

@oliland
Created October 11, 2011 09:55
Show Gist options
  • Save oliland/1277738 to your computer and use it in GitHub Desktop.
Save oliland/1277738 to your computer and use it in GitHub Desktop.
#!/bin/bash
USERNAME = oliland
for REPO in private-repo-1 private-repo-2 private-repo-N
do
git clone [email protected]:$USERNAME/$REPO.git
sed -i '' -e 's/github\.com/bitbucket\.org/g' "$src/$dir/.git/config"
cd $REPO
git push origin master
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment