今天莫名其妙的发布博客到github上发现报错了,错误以下:
html
1:排查是否安装一下hexo-deployer-git
这个模块
没有安的话装使用指令安装:npm install hexo-deployer-git --save
git
2:检查deploy:
下面的节点 如type:
这些 须要缩进。 以前是这种格式github
改为这种格式便可:
npm
最后注意这段配置之间的空格(必定要有空格):hexo
# Deployment ## Docs: https://hexo.io/docs/deployment.html deploy: type: git repo: git@github.com:imtudou/imtudou.github.io.git branch: master