Created
August 30, 2013 04:49
-
-
Save jdpaton/6386421 to your computer and use it in GitHub Desktop.
Adds a bunch of subdirectories that are git modules to the parent git repo/folder
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
for i in $(ls -d bundle/*); do;if [ -d "$i"/.git ]; then; git submodule add $(cd $i && git remote show origin | grep Fetch | awk '{print $3}') ./$i; fi; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment