hexo报错解决

第一种方法:

检查目录是否.git目录存在没有就手动生成

1
2
git init
git config --global user.email "1548702940@qq.com" && git config --global user.name "wjg9786"

第二种方法:

如果报Error: Spawn failed,在主目录删除.deploy_git文件夹并且执行hero clean后,重新hero deploy