Created
April 4, 2014 10:41
-
-
Save alch/9972081 to your computer and use it in GitHub Desktop.
Clone and subtree-split for Elcodi Bundles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in $(ls -1 symfony.Elcodi/src/Elcodi/); do | |
rm -rf elcodi.$i | |
git clone [email protected]:elcodi/elcodi.git elcodi.$i; | |
cd elcodi.$i; | |
git filter-branch --prune-empty --subdirectory-filter src/Elcodi/$i; | |
git remote rm origin | |
git remote add origin [email protected]:elcodi/$i.git | |
git push origin master | |
git push --tags | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment