Reputation: 15107
Currently I have a few submodules in my parent project. How can I tell if one of the submodules has recently changed and I need to do a
git submodule foreach git pull origin master
Upvotes: 1
Views: 402
Reputation: 14468
Submodules are nothing more then nested git repositories.
Try this command, I don't have any repositories with submodules to test it on.
git submodule foreach 'echo $path `git status`'
Upvotes: 3