Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我的父项目中有一些子模块。如何判断其中一个子模块最近是否发生了变化,我需要做一个
git submodule foreach git pull origin master
子模块只不过是嵌套的 git 存储库。
试试这个命令,我没有任何带有子模块的存储库来测试它。
git submodule foreach 'echo $path `git status`'
git pull --recurse-submodules=yes