github hexo常用命令

*


===安装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/ 查看

===常用
$ hexo n == hexo new
$ hexo g == hexo generate
$ hexo s == hexo server
$ hexo d == hexo deploy

===换主题
$ hexo clean
$ git clone https://github.com/litten/hexo-theme-yilia.git themes/yilia
$ cd themes/yilia
$ git pull
$ hexo g # 生成
$ hexo s # 启动本地web服务器


netstat -ano|findstr "4000"
tasklist|findstr "2828"

部署到git上去
hexo clean
hexo g
hexo d

*************
之前发布失败,是_config.yml中写错了repo
deploy:
type: git
repo: https://github.com/BigJoyce/BigJoyce.github.io.git
branch: master

访问路径
https://bigjoyce.github.io/

*

有问题在公众号【清汤袭人】找我,时常冒出各种傻问题,然一通百通,其乐无穷,一起探讨


原文地址:https://www.cnblogs.com/qingmaple/p/6612686.html