*git
===安装hexo
$ cd d:/hexo
$ npm install hexo-cli -g
$ hexo init blog
$ cd blog
$ npm install
$ hexo g # 或者hexo generate
$ hexo s # 或者hexo server,能够在http://localhost:4000/ 查看github
===经常使用
$ hexo n == hexo new
$ hexo g == hexo generate
$ hexo s == hexo server
$ hexo d == hexo deployweb
===换主题
$ hexo clean
$ git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia
$ cd themes/yilia
$ git pull
$ hexo g # 生成
$ hexo s # 启动本地web服务器npm
netstat -ano|findstr "4000"
tasklist|findstr "2828"服务器
部署到git上去
hexo clean
hexo g
hexo dhexo
*************
以前发布失败,是_config.yml中写错了repo
deploy:
type: git
repo: https://github.com/BigJoyce/BigJoyce.github.io.git
branch: masterserver
访问路径
https://bigjoyce.github.io/blog
*部署