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.
有没有办法查看在主模块的特定版本中提交了子模块的哪个版本?我知道我可以通过检查特定版本、拉取子模块并检查子模块的状态来做到这一点,但是为了检查映射而检查整个 repos 似乎有点繁重。
您可以使用git ls-tree:
git ls-tree
$ git ls-tree HEAD submodule 160000 commit f7d1c4fa156f27cf52776d3238f6aca7f767d189 submodule