Hexo博客部署命令
使用Github托管的方式(git):
- 首先配置
_config.yml文件的相关内容
1 | deploy: |
清除缓存并部署
1 | # 彻底删除部署文件夹(在 Hexo 根目录) |
配置好用户和密钥并且在账户里粘贴SSH密钥的pub key
1 | git config --global user.name "你的GitHub用户名" |
推送到上面
1 | git add . |
- Title: Hexo博客部署命令
- Author: Salvio
- Created at : 2026-01-19 00:00:00
- Updated at : 2026-01-19 02:34:02
- Link: https://blog.ixsay.com/post/d5b7ad2e.html
- License: All Rights Reserved © Salvio
Comments