Created
November 22, 2011 01:09
-
-
Save eLod/1384566 to your computer and use it in GitHub Desktop.
Add submodules from .gitmodules when the submodules are not committed to the repo (just the .gitmodules file, leading to git submodule init/update doing nothing).
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 `git config -f .gitmodules --get-regexp path | cut -d" " -f2` ; do git submodule add $(git config -f .gitmodules --get submodule."$i".url) $i ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment