git 查看submodule的log
时间: 2023-11-11 18:44:54 浏览: 244
要查看 Git 子模块(submodule)的日志,你可以使用以下命令:
```
git submodule foreach --recursive git log
```
这个命令会递归地遍历所有的子模块,并显示每个子模块的历史日志信息。如果你只想查看某个特定子模块的日志,可以在命令中指定子模块的路径:
```
git submodule foreach --recursive git log path/to/submodule
```
确保在运行以上命令时,你处于主 Git 项目的根目录下。这样就能查看子模块的提交历史了。
阅读全文
相关推荐


















