Before getting changes from GIT server, it would be good to have the modules checked-out on the branch you’re working on:
Pull all changes for all submodules for a GIT project:
Another approach that I use lately, and it’s working great:
You could also try:
git pull —-recurse-submodules
Another version that I’ve seen recently, but could not advice yet why it would be better than previous ones:
After getting changes from the server, some modules might loose the check-out from the working branch, so you might need to checkout it again.
Note 1: Credits go to StackOverflow, IT blogs and alike, sites that helped me with the code when searching for solutions.
Note 2: Be aware that when copy-pasting, the quotes and possibly other characters get messed up by WordPress, you’ll have to replace them.