Last active
January 1, 2016 15:09
-
-
Save elken/8162595 to your computer and use it in GitHub Desktop.
Script to add all submodules from a given file (could be edited to fit needs but I cba)
This file contains hidden or 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 `cat tmp`; do | |
| git submodule add https://github.com/$i bundle/$(echo $i | cut -d "/" -f2); | |
| git submodule init; | |
| git submodule update; | |
| cd bundle/$(echo $i | cut -d "/" -f2); | |
| git checkout master; | |
| git pull master; | |
| cd ../..; | |
| git add bundle/$(echo $i | cut -d "/" -f2); | |
| git commit -m "Added submodule: $(echo $i | cut -d "/" -f2)"; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment