Skip to content

Instantly share code, notes, and snippets.

@greggles
Created March 13, 2012 22:13
Show Gist options
  • Save greggles/2032114 to your computer and use it in GitHub Desktop.
Save greggles/2032114 to your computer and use it in GitHub Desktop.
checkout all the projects
#!/bin/bash
REPOS="/Users/gknaddison/checkouts/allthestuff/newstyle/d6/themes"
mkdir $REPOS
cd $REPOS
while read line; do
echo "$line"
git clone git://git.drupal.org/project/${line}.git ${REPOS}/${line}
cd ${REPOS}/${line} && git checkout 7.x-1.x
done < "/Users/gknaddison/checkouts/allthestuff/allthemes.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment