fatal: No url found for submodule path ‘website’ in .gitmodules

247 阅读1分钟

换个hexo主题,报错

image.png

但是我一直没有找到.gitmodules 执行命令:

git submodule status
fatal: no submodule mapping found in .gitmodules for path 'themes/next'

修复步骤:

  1. 删除这个主题
  2. push到远程分支
  3. 重新安装
`git submodule add --depth=1 https://github.com/link_to_your_favorite_theme.git themes/theme_name`  
`git submodule update --init --recursive`
  1. 再执行这个代码检查一下(我装了另外一个主题)

image.png

应该就没得问题了

但是我又发现了一个新问题:

image.png

image.png

这个是静待站点构建出问题了 ,确实没有这个nojekyll文件。 文档:docs.github.com/en/pages/ge…

image.png

现在解决:

  1. 新建一个文件nojekyll
New-Item -ItemType file .nojekyll    --- windows
touch .nojekyll    --- (Linux或macOS)
  1. 重新执行一遍
hexo clean
hexo generate
hexo deploy

希望对你们有帮助