技术饭

Git:fatal: No url found for submodule path ‘xxx/xxx‘ in .gitmodules gitsubmodule子仓库无法拉取问题

copylian    0 评论    19211 浏览    2022.07.27

报错:golang.html' target='_blank' style='color:#00B69C'>golang.org/x/mod/semver: gitee.com/DXTeam/idea-go.git@v0.0.0 (replaced by ./submodule/idea-go.git): reading submodule\idea-go.git\go.mod: open F:\wnmp\wwwgit\auth\submodule\idea-go.git\go.mod: The system cannot find the file specified.

问题:.gitmodules gitsubm子仓库无法拉取问题odule

.gitmodules文件:

[submodule "submodule/services-proto.git"]

        path = submodule/services-proto.git

        url = git@gitee.com:Jufengya/services-proto.git

[submodule "submodule/idea-go.git"]

        path = submodule/idea-go.git

        url = git@gitee.com:Jufengya/idea-go.git


解决方案:

git submodule init #初始化

git submodule sync #同步

git submodule update #更新


参考:https://blog.csdn.net/u011208111/article/details/118053844

只袄早~~~
感谢你的支持,我会继续努力!
扫码打赏,感谢您的支持!

文明上网理性发言!

  • 还没有评论,沙发等你来抢