git submodule 操作

git submodule foreach git status
举一反三,对所有子库的操作,都可以使用 git submodule foreach 做前缀
foreach,可以记忆为for each,为每一个。

例如:
git submodule foreach git pull
git submodule foreach git checkout .
git submodule foreach git update
....

原文地址:https://www.cnblogs.com/Mojito2020/p/13713082.html