GitHub建库

hexo本地上传 github 博客

新建仓库

hexo本地上传 github 博客

命名格式 用户名.github.io

配置git

打开 git bash

hexo本地上传 github 博客

生成密匙

 # ssh-****** -t rsa -C "[email protected]"

添加**到 ssh-agent

 # eval "$(ssh-agent -s)"

添加生成的SSH keyssh-agent

 # ssh-add ~/.ssh/id_rsa

添加密匙到GitHub

密匙默认位置

hexo本地上传 github 博客

查看密匙 用文本软件打开

hexo本地上传 github 博客

hexo本地上传 github 博客

hexo本地上传 github 博客

hexo本地上传 github 博客

检测连接

 # ssh -T [email protected]

hexo本地上传 github 博客

上传 blog文件

打开软件 安装node https://blog.csdn.net/hanxinkong/article/details/83585974
hexo本地上传 github 博客

安装扩展

npm install hexo-deployer-git --save

修改配置文件
hexo本地上传 github 博客

上传 (重新本地生成上传

# hexo g -d

hexo本地上传 github 博客

上传成功

hexo本地上传 github 博客

github上查看

hexo本地上传 github 博客

测试

https://hanxinkong.github.io

hexo本地上传 github 博客

配置完成了

相关文章:

  • 2021-07-27
  • 2021-08-06
  • 2022-01-28
  • 2021-10-21
  • 2021-08-22
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2021-04-08
  • 2022-02-09
相关资源
相似解决方案