hexo相关命令以及本地文件备份
今天为了整博客的图库差点把博客源文件整没了。恢复以后,尝试了很久在github上备份本地博客文件。参考了以下文章:
博客备份与换设备
在这里顺便写点hexo相关命令,防止以后忘记了。
清除和再生成 (大概是这个意思吧)
1 | hexo clean && hexo g |
部署至github
1 | hexo d |
生成静态地址(本地)
1 | hexo s |
新建文章
1 | hexo new post test |
将静态文件推送到master分支
1 | hexo clean |
将相关更改推送到hexo分支
1 | git add . |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.






