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
相关推荐
MicrosoftReactor7 分钟前
技术速递|GitHub Copilot App 入门指南:管理你的工作
ai·github·copilot·agent
New_Horizons6662 小时前
Git 操作(使用git-commit-template)
git
阿里嘎多学长2 小时前
2026-08-20 GitHub 热点项目精选
开发语言·程序员·github·代码托管
慕容引刀5 小时前
或许你真的需要这个Git神器:让团队提交文案终于对齐了
人工智能·git·vscode·自然语言处理·github
桌角的眼镜5 小时前
5\.28文章改写:用 Claude Code 接入 GLM\-5\.1:从安装到终端实战的完整配置指南
后端·程序员·github·开发工具·效率工具
峰向AI5 小时前
⭐Drawnix:唯一做到 思维导图+流程图+自由画笔 一体化的免费开源工具
github
jjh+++(求关注版)5 小时前
git-命令速查清单
git
流量猎手16 小时前
宝塔中更新github
github