由于总是记不住github和hexo提交方法,需要现搜,因此写个博客记录一下
github 提交方法
本地提交到main
1 | git init #已经初始化就不需要 |
hexo提交方法
在cmd中cd到blog/xxx文件里面
新建文章
1 | hexo new "articleName" |
上传博客
1 | hexo clean |
新建页面
1 | hexo new page xxx #新建页面,地址为:主页地址/aboutme/ |
多终端提交日志
1 | git pull origin hexo |
提交源代码合并到hexo分支
1 | git checkout hexo |