我的仓库的.gitmodules
文件如下:
[submodule "deps/Framework"]
path = deps/Framework
url = git://git@github.com/MyOrg/framework-php.git
branch = reorg
[submodule "deps/MyClient"]
path = deps/MyClient
url = git://git@github.com/MyOrg/myclient-php.git
branch = publish
当我在Azure Kudu的命令行中运行git submodule update --init --progress
时,出现此错误:
Cloning into 'D:/home/site/repository/mywebsite/deps/MyClient'...
ssh: Could not resolve hostname github.com:MyOrg: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
fatal: clone of 'ssh://git@github.com:My/Myclient-php.git' into submodule path 'D:/home/site/repository/mywebsite/deps/MyClient' failed
Failed to clone 'deps/MyClient'. Retry scheduled
Cloning into 'D:/home/site/repository/mywebsite/deps/Framework'...
ssh: Could not resolve hostname github.com:MyOrg: Name or service not known
fatal: Could not read from remote repository.
为什么将github.com/MyOrg
转换为github.com:MyOrg
(无论如何都是有效的SSH URL)然后拒绝它?
我的git config -l
输出未列出任何submodule...
条目。