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
相关推荐
风之九子18 小时前
在上游一天两版的项目上做二次开发:9 天 65 次提交的 fork 手记 (dsh-our-free-model)
人工智能·ai·github
邱杰47018 小时前
数智人事系统(十七):加班核算与薪资构成
后端·github
小弥儿18 小时前
GitHub今日热榜 | 2026-10-20:智能体基建七席连庄,生成类项目回流
学习·开源·github
nunumaymax18 小时前
Git教程
git
江厌0119 小时前
两张卡部署两个模型:物理分卡、MIG、张量并行的选择与可复现配置
github·模型部署·vllm
问天_观心19 小时前
模型微调学习(二)
开发语言·人工智能·学习·语言模型·github
回眸&啤酒鸭19 小时前
【回眸】GitHub Copilot 智能编程辅助效果实测
github·copilot
Brilliantwxx19 小时前
【Linux】基础IO(下):输出重定向、dup2 与 minishell 重定向实战
linux·运维·服务器·github·bash
miofly19 小时前
GitHub 今日推荐|security-audit-skill:让编码代理自己审计漏洞还互相验证
javascript·开源·github
阿萨德528号19 小时前
IDEA 项目 SVN 配置消失、版本控制变成 Git 且无 VCS 菜单的解决办法
git·svn·intellij-idea