准备工作

  • ssh key 要先申请好,并且添加至github的ssh库中
  • 安装插件 hexo-deployer-git
npm install hexo-deployer-git --save

配置

配置 _config.yml 文件

deploy:
  type: git
  repository: git@github.com:username/username.github.io.git
  branch: master

提交

$ hexo generate
$ hexo deploy

相关文章:

  • 2021-12-19
  • 2021-09-29
  • 2022-01-28
  • 2021-10-21
  • 2022-12-23
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
  • 2021-07-27
  • 2022-01-18
  • 2021-08-22
相关资源
相似解决方案