git 与 hexo 运行错误集锦

工具使用过程中,难免会遇到各种各样的错误,这里总结一下,不定时更新……

fatal: refusing to merge unrelated histories

  • 参数 --allow-unrelated-histories
    • 具体操作 git pull origin branchname --allow-unrelated-histories

hexo g 报错

错误信息如下:Template render error: (unknown path) [Line 12, Column 38] expected variable

原因:Markdown 语法有问题,此次原因是:

1
style={{fontSize: 50px, display: block}} 有问题,双大括号写在代码中可能引起 hexo 模板编译失败