hexo命令备忘录。
hexo
hexo安装
| 1 | npm install hexo-cli -g | 
hexo安装部署
| 1 | npm install | 
安装hexo d的部署命令
| 1 | npm install hexo-deployer-git --save | 
hexo一键三连。
| 1 | hexo clean && hexo g && hexo d | 
git配置
| 1 | git config --global user.name "wuxie136" | 
| 1 | ssh-keygen -t rsa -C "848129247@qq.com" | 
上传命令
| 1 | git add . | 
第二种方法
| 1 | git add . | 
连续回车,输入下面的看密钥
| 1 | cat ~/.ssh/id_rsa.pub | 
测试是否连接
| 1 | ssh -T git@github.com | 
上传到仓库
删除所有仓库链接
| 1 | git remote rm origin | 
链接仓库
| 1 | git remote add origin https://@github.com/wuxie136/blog136.git | 
忽悠一些不重要的文件。
创建.gitignore
| 1 | .DS_Store | 
部署到page
安装插件
| 1 | npm install hexo-deployer-git --save | 
配置
| 1 | deploy: | 
一键上传
| 1 | git add . | 
恢复hexo
| 1 | git clone 仓库链接 | 
| 1 | npm install | 
- 标题: hexo命令备忘录。
- 作者: linmu
- 创建于 : 2022-06-11 06:30:58
- 更新于 : 2022-06-11 06:30:58
- 链接: https://redefine.ohevan.com/posts/570ae4c8.html
- 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论