Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
gh pages分支无法在GitHub上构建,但在本地运行完美无瑕_Git_Github_Github Pages - Fatal编程技术网

gh pages分支无法在GitHub上构建,但在本地运行完美无瑕

gh pages分支无法在GitHub上构建,但在本地运行完美无瑕,git,github,github-pages,Git,Github,Github Pages,我在特定项目的gh pages分支中有两个子模块。每次推送此项目时,我都会在邮箱中收到这样一条熟悉的消息: 页面生成失败,出现以下错误: 无法克隆为/updates/4.4.luna注册的子模块。 确保它使用https://并且是公共回购。更多 有关详细信息,请参阅 这仅涉及其中一个子模块,即使两个子模块的配置方式相同。它们都是公共的,并在本地存储库中以https://地址注册: $ git submodule foreach -q git config remote.origin.url h

我在特定项目的gh pages分支中有两个子模块。每次推送此项目时,我都会在邮箱中收到这样一条熟悉的消息:

页面生成失败,出现以下错误:

无法克隆为
/updates/4.4.luna
注册的子模块。 确保它使用https://并且是公共回购。更多 有关详细信息,请参阅

这仅涉及其中一个子模块,即使两个子模块的配置方式相同。它们都是公共的,并在本地存储库中以https://地址注册:

$ git submodule foreach -q git config remote.origin.url
https://github.com/ldesousa/dsl3s.update.4.3.kepler.git
https://github.com/ldesousa/dsl3s.update.4.4.luna.git
我在本地安装运行站点时遇到了麻烦(哎呀,GitHub页面上的说明太差了)。在当地,一切都运转良好;杰克尔没有报告任何错误


我还能做些什么来解决这个问题?或者至少要理解为什么存储库无法在GitHub上构建?

好的,在进一步挖掘之后,我发现主存储库中的元数据与子模块中的元数据不一致:

$ cat .gitmodules
[submodule "updates/4.3.kepler"]
    path = updates/4.3.kepler
    url = https://github.com/ldesousa/dsl3s.update.4.3.kepler.git
[submodule "updates/4.4.luna"]
    path = updates/4.4.luna
    url = git@github.com:ldesousa/dsl3s.update.4.4.luna.git
因此,我必须更正http://版本的最后一个URL,然后运行:

git submodule sync