部署Hugo的Web到Git Hub页面错误:致命错误:远程错误:Upload-Pack:不是我们的Ref 79431688EB0DF78F3B

发布于 2025-01-28 17:46:59 字数 474 浏览 2 评论 0原文

我正在尝试在GitHub页面上实现雨果网站。我正在使用“ Serif-Hugo-Theme”主题。

它在本地模式下对我来说非常有效,但是当我进行部署时,我会遇到此错误。

我已经用我的github存储库的baseurl配置了config.toml。

谢谢提前

错误:

克隆进入'/home/runner/work/la-coladalavanderia/la-coladalavanderia/themes/hugo-serif-theme'... 错误:致命:远程错误:上传式包:不是我们的Ref 79431688EB0DF78F3B6D904071895A4D8205AC42 错误:致命:在子模块路径“主题/Hugo-serif-theme”中获取,但不含79431688EB0DF78F78F3B6D904071895A4D8205AC42。该提交的直接获取失败。 错误:流程'/usr/bin/git'出口代码128 失败

I am trying to implement my hugo website in github pages. I am using the "serif-hugo-theme" theme.

It works perfectly for me in local mode but when I do the deployment I get this error.

I have configured the config.toml well with the baseurl of my github repository.

Thanks in advance

Error:

Cloning into '/home/runner/work/la-coladalavanderia/la-coladalavanderia/themes/hugo-serif-theme'...
Error: fatal: remote error: upload-pack: not our ref 79431688eb0df78f3b6d904071895a4d8205ac42
Error: fatal: Fetched in submodule path 'themes/hugo-serif-theme', but it did not contain 79431688eb0df78f3b6d904071895a4d8205ac42. Direct fetching of that commit failed.
Error: The process '/usr/bin/git' failed with exit code 128

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

书间行客 2025-02-04 17:46:59

我已经使用此主题信息创建了一个.gitModules文件(不存在)。 _我不知道它是否正确

[submodule "themes/hugo-serif-theme"]
path = themes/hugo-serif-theme
url = https://github.com/zerostaticthemes/hugo-serif-theme

I have created a .gitmodules file (which did not exist) with this theme information. _I don't know if it's correct

[submodule "themes/hugo-serif-theme"]
path = themes/hugo-serif-theme
url = https://github.com/zerostaticthemes/hugo-serif-theme
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文