hexo本地上传 github 博客

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.****.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 博客

配置完成了