$ npm install [email protected] -g #或使用cnpm
$ npm install #或使用cnpm
$ npm install hexo-deployer-git --save
deploy:
type: git
repository: [email protected]:waptak/waptak.github.io.git
branch: master
$ npm install hexo-generator-search --save
search:
path: search.xml
field: post
$ hexo n == hexo new
$ hexo g == hexo generate
$ hexo s == hexo server
$ hexo d == hexo deploy
$ hexo d #生成部署
$ hexo clean
# 删除 .deploy_git文件夹
$ hexo d