Skip to content

Instantly share code, notes, and snippets.

@jdpaton
Created August 30, 2013 04:49
Show Gist options
  • Save jdpaton/6386421 to your computer and use it in GitHub Desktop.
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
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