問題
使用hexo d或hexo deploy命令時報錯:
ERROR Deployer not found: git
解決
安裝hexo-deployer-git:
npm install --save hexo-deployer-git
在_config.yml配置中將deploy的type由github改為git:
deploy
type: git
repository: [email protected]:YOUR_ID/YOUR_ID.github.io.git
branch: master
將其中的
YOUR_ID改成你自己的GitHub賬號