我是靠谱客的博主 刻苦小熊猫,这篇文章主要介绍hexo项目引用模板不能提交问题 submodule问题,现在分享给大家,希望可以做个参考。

hexo 生成的博客,引入新的模板
“`
git clone https://github.com/wuchong/jacman.git themes/jacman

“`
项目提交git,出现异常

The page build failed with the following error:
The submodule `themes/jacman` was not properly initialized with a `.gitmodules` file. For more information, see https://help.github.com/articles/page-build-failed-missing-submodule/.
For information on troubleshooting Jekyll see:
https://help.github.com/articles/troubleshooting-jekyll-builds
If you have any questions you can contact us by replying to this email.

问题通过submodule命令解决

git submodule add https://github.com/wuchong/jacman.git themes/jacman

当前工程根路径下生成一个名为“.gitmodules”的文件

[submodule "themes/jacman"]
path = themes/jacman
url = https://github.com/wuchong/jacman.git

描述了子模块的信息

最后

以上就是刻苦小熊猫最近收集整理的关于hexo项目引用模板不能提交问题 submodule问题的全部内容,更多相关hexo项目引用模板不能提交问题内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(104)

评论列表共有 0 条评论

立即
投稿
返回
顶部