how do i know if a submodule has changed in git?
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
2 Solutions collect form web for “how do i know if a submodule has changed in git?”
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`'
git pull --recurse-submodules=yes