最佳答案
作为Git docs说(强调我的):
The .gitmodules file, located in the top-level directory of a Git working tree, is a text file with a syntax matching the requirements of git-config.
因此,如果您的存储库位于 C:\Users\Asus\Documents\PDA
中,则该文件应位于 C:\Users\Asus\Documents\PDA\.gitmodules
.
子模块有一个路径和一个 URL;您的文件似乎定义了一个没有 URL 的子模块。您可能想要编辑文件以删除子模块或添加 URL。
关于git - 为什么使用sourcetree得到 "no url found for submodule path"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43234851/