# 创建库

GitHub 主页右上角加号 => New repository
Repository name 中输入 用户名.github.io
Description (描述) 选填
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 部分 (分支) 请在刚刚创建的库里查看。


# (可选) 使用自己的域名

阅读次数

请我喝[茶]~( ̄▽ ̄)~*

Peter Zhu 微信支付

微信支付

Peter Zhu 支付宝

支付宝

Peter Zhu 贝宝

贝宝