hexo博客上传github page

  1. 在github上新建仓库,仓库名必须严格为 用户名.github.io,并在setting里打开github page的设置
  2. 在 _config.yml加入:
yml 复制代码
deploy:
  type: git # 部署类型,如 git, heroku 等
  repo: https://github.com/2008zhangtx-oss/2008zhangtx-oss.github.io.git
  branch: main
  1. git下载插件:
bash 复制代码
 npm install hexo-deployer-git --save
  1. 终端上传:
bash 复制代码
hexo clean; hexo g; hexo d
hexod # powershell配置
  1. 终端由于网络上传失败,要去配代理
bash 复制代码
git config --global http.proxy http://127.0.0.1:17890
git config --global https.proxy http://127.0.0.1:17890

配完后可以取消:

bash 复制代码
git config --global --unset http.proxy
git config --global --unset https.proxy
相关推荐
徐小夕15 分钟前
LlamaIndex Memory 深度拆解:为什么持久化记忆才是 Agent 从"玩具"走向"工具"的那一步
前端·vue.js·github
钱栈up2 小时前
GitHub 热榜上手|Astryx:一周 +1.3 万 star 的 Agent 设计系统
typescript·开源·github
逛逛GitHub20 小时前
推荐 11 个本月热门的 GitHub 开源项目,尤其是第 9 个。
github
钱栈up1 天前
GitHub 热榜上手|T3 Code:手机远程操控 7 款 AI 编程 Agent
typescript·开源·github
`流年づ1 天前
联邦学习-安全聚合
git·安全·github
CoderYanger1 天前
Java EE 进阶:14.案例综合练习-博客系统(第二弹):博客详情+令牌技术
服务器·前端·spring boot·后端·spring·java-ee·github
喜欢吃燃面2 天前
Git 原理与使用(三):标签、多人协作与 Git Flow 落地
大数据·git·elasticsearch
喜欢吃燃面2 天前
Git 原理与使用(二):分支是平行宇宙,远程仓库是共享时空
大数据·git·elasticsearch
逛逛GitHub2 天前
民间大神移植《GTA 6》进度已经到 90% 了,这几个 GitHub 项目关注一下
github