如何列出所有 Git 子模块的 URL?

Qua*_*xE7 10 git git-submodules

“git Remote get-url origin”可用于获取远程位置。如何对所有子模块执行相同的操作?

phd*_*phd 9

为每个子模块运行命令:

git submodule foreach --recursive git remote get-url origin
Run Code Online (Sandbox Code Playgroud)