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
相关推荐
梦想三三2 小时前
Git与GitHub基础入门:从零开始掌握版本控制与代码托管(完整图文教程)
人工智能·git·elasticsearch·github
青禾网络4 小时前
前端做音画匹配这件事,我从"随机塞"到"AI 自动对齐"
前端·github
用户081602610575 小时前
AgentGate:一行命令给你的 AI Agent 加上企业级弹性层
github
怕浪猫6 小时前
面向自我改进的驾驭工程Harness Engineering for Self-Improvement
github·agent·ai编程
Joy-鬼魅7 小时前
Git常用操作
git
hanqunfeng9 小时前
GitHub Actions Workflow 详细指南
github
流浪00111 小时前
Git篇(三):吃透远程协作:SSH 密钥、分支、标签全流程实战指南
运维·git·ssh
haluhalu.13 小时前
prompts.chat:03-core-prompting-principles
prompt·github
阿里嘎多学长1 天前
2026-07-10 GitHub 热点项目精选
开发语言·程序员·github·代码托管
莫成1 天前
git相关命令查阅
git