hexo项目引用模板不能提交问题 submodule问题

来源:互联网 发布:c语言字符个数统计 编辑:程序博客网 时间:2024/06/06 02:58

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-buildsIf 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

描述了子模块的信息

0 0
原创粉丝点击