Skip to content

Instantly share code, notes, and snippets.

@davejohnson
Forked from brianleroux/migrate.sh
Created October 21, 2011 18:09
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 "git@github.com: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