无论如何,.gitmodules 的位置文件在哪里?如何修复错误?提前致谢 最佳答案 作为-6ren">
gpt4 book ai didi

git - 为什么使用sourcetree得到 "no url found for submodule path"?

转载 作者:太空狗 更新时间:2023-10-29 13:15:31 24 4
gpt4 key购买 nike

当我尝试克隆项目时,为什么会出现这样的错误:

enter image description here

据说在 .gitmodules 中找不到子模块路径的 url>

无论如何,.gitmodules 的位置文件在哪里?如何修复错误?提前致谢

最佳答案

作为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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com