Skip to content

Instantly share code, notes, and snippets.

@ethanholda
Last active May 12, 2016 20:30
Show Gist options
  • Save ethanholda/db4e9c289f9910db8de6 to your computer and use it in GitHub Desktop.
Save ethanholda/db4e9c289f9910db8de6 to your computer and use it in GitHub Desktop.
NYSCI code delivery
projects_root=/Users/ethanholda/projects
# client_repo=https://github.com/nysci/choreograph.git
# client_dir=/Users/ethanholda/projects/nysci-client-repos/nysci-ios-choreograph
# local_dir=/Users/ethanholda/projects/nysci-ios-choreograph
# client_repo=https://github.com/nysci/volumize.git
# client_dir=/Users/ethanholda/projects/nysci-client-repos/nysci-ios-volumize
# local_dir=/Users/ethanholda/projects/nysci-ios-volumize
# client_repo=https://github.com/nysci/fractionmash.git
# client_dir=/Users/ethanholda/projects/nysci-client-repos/nysci-ios-fractionmash
# local_dir=/Users/ethanholda/projects/nysci-ios-fractionmash
# client_repo=https://github.com/nysci/playgroundphysics.git
# client_dir=/Users/ethanholda/projects/nysci-client-repos/nysci-ios-playgroundphysics
# local_dir=/Users/ethanholda/projects/nysci-ios-playgroundphysics
# client_repo=https://github.com/nysci/sizewise.git
# client_dir=/Users/ethanholda/projects/nysci-client-repos/nysci-ios-sizewise
# local_dir=/Users/ethanholda/projects/nysci-ios-sizewise
client_repo=https://github.com/nysci/sizewise.git
client_dir=/Users/ethanholda/projects/nysci-client-repos/nysci-ios-eflectiontool
local_dir=/Users/ethanholda/projects/nysci-ios-eflectiontool
#branches="develop app/fraction-mash feature/sciplay-iOS8UI develop-sidewise feature/iOS8-App3D"
branches="develop"
for b in $branches
do
cd $projects_root
# git clone $client_repo $client_dir
cd $local_dir
git checkout $b
# git stash save "STASHED CHANGES BEFORE CLIENT CODE DELIVERY"
git pull origin $b
git archive $b| tar -x -C $client_dir
commitid=`git rev-parse HEAD`
cd $client_dir
git checkout -b $b
git add .
git commit -m "snapshot of production ${b} ${commitid}"
# git push origin $b
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment