Skip to content

Instantly share code, notes, and snippets.

@davejohnson
Forked from brianleroux/migrate.sh
Created October 21, 2011 18:09
Show Gist options
  • Save davejohnson/1304525 to your computer and use it in GitHub Desktop.
Save davejohnson/1304525 to your computer and use it in GitHub Desktop.
dont worry about it
#! /bin/sh
set -e
news=(phonegap callback-qt callback-weinre callback-test callback-docs callback-mac callback-bada callback-windows-phone callback-webos callback-blackberry)
olds=(phonegap phonegap-qt weinre mobile-spec phonegap-docs phonegap-mac phonegap-bada phonegap-wp7 phonegap-webos phonegap-blackberry-webworks)
for i in ${!olds[*]}
do
# clone down the old repo
git clone "http://github.com/phonegap/${olds[$i]}"
# jump into the local repo
cd "${olds[$i]}"
# add as remote
git remote add cb "[email protected]:callback/${news[$i]}.git"
# push old to new
git push cb master
# push tags too
git push cb --tags
# start over
cd ../
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment