# 创建库
GitHub 主页右上角加号 => New repositoryRepository name 中输入 用户名.github.ioDescription (描述) 选填Initialize this repository with a README 可以勾选
点击 Create repository 创建
创建后默认博客地址为:https:// 用户名.github.io
# 将库与 GitHub 连接
首先需要安装对应插件: hexo-deployer-git
npm install hexo-deployer-git --save
接着修改 _config.yml 文件的 Deployment 部分:
deploy:
type: git
repository: git@github.com:用户名/用户名.github.io.git
branch: main # 有些是master
brench 部分 (分支) 请在刚刚创建的库里查看。