github hexo經常使用命令

*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

 

*部署

相關文章
相關標籤/搜索