hexo clean hexo n #完整命令为hexo new,用于新建一篇文章 hexo g #完整命令为hexo generate,用于生成静态文件 hexo s #完整命令为hexo server,用于启动服务器,主要用于本地预览 hexo d #完整命令为hexo deploy,用于将本地文件发布到GitHub上
Q1. 若出现error deployer not found:github错误,执行以下命令
1
npm install hexo-deployer-git --save
Q2. 若输入hexo d报下面的错误:
1 2 3
fatal: unable to auto-detect email address (got 'yafei@DESKTOP-IMNML8J.(none)') error: src refspec HEAD does not match any error: failed to push some refs to 'https://github.com/jonyafei/jonyafei.github.io.git'
remote: Resolving deltas: 100% (6/6), done. To https://github.com/jonyafei/jonyafei.github.io.git new branch HEAD -> master Branch 'master' set up to track remote branch 'master' from 'https://github.com/jonyafei/jonyafei.github.io.git'. INFO Deploy done: git