Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created October 21, 2011 17:50
Show Gist options
  • Save brianleroux/1304472 to your computer and use it in GitHub Desktop.
Save brianleroux/1304472 to your computer and use it in GitHub Desktop.
dont worry about it
#! /bin/sh
set -e
news=(callback-qt callback-weinre callback-test callback-docs callback-mac callback-bada callback-windows-phone callback-webos callback-blackberry)
olds=(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