hexo n "新的博客"#新建博客hexo g & hexo s #编译并运行hexo g & hexo d #编译并部署------------------------------------
git add . #添加所有修改的文件git commit -m ""#提交说明git branch -a #查看所有分支git push --set-upstream origin hexo_bak #推送到指定分支
简写
1
2
3
4
5
hexo n "我的博客"=> hexo new "我的博客"#新建文章hexo p=> hexo publish
hexo g=> hexo generate#生成
hexo s=> hexo server #启动服务预览hexo d=> hexo deploy#部署
服务器
1
2
3
4
5
6
7
8
hexo server #Hexo 会监视文件变动并自动更新,您无须重启服务器。hexo server -s #静态模式hexo server -p 5000#更改端口hexo server -i 192.168.1.1 #自定义 IPhexo clean #清除缓存 网页正常情况下可以忽略此条命令hexo g #生成静态网页hexo d #开始部署