首先打开你的_config.yml文件,在文件的最下面的代码写改为下面这种,其中repository是你的GitHub仓库的地址。
deploy:
type: git
repository: https://github.com/JingYu1205/JingYu1205.io.github.git
branch: main
首先安装这个工具,这样的话就是安装成功了。
npm install hexo-deployer-git --save
生成页面的一个命令
hexo g