Kamilski81
Kamilski81

Reputation: 15107

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

Upvotes: 1

Views: 402

Answers (2)

Kamilski81
Kamilski81

Reputation: 15107

git pull --recurse-submodules=yes

Upvotes: 0

Peter van der Does
Peter van der Does

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

Related Questions