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
相关推荐
黎羽_7 小时前
《开源 PR 实战》系列(三):22 个 PR 之后,批量提 PR 的打法
开源·github·代码评审·pull request·协作
fthux11 小时前
总想着“忙完再休息”?让 Tick Rest 提醒你,先歇一会儿
开源·github·mac·swift·提醒·消息提醒·tick rest·tick rest for mac·消息提醒app
dong_junshuai12 小时前
每天一个开源项目#156 Astryx:主题编译、异步按钮与源码接管
github
逛逛GitHub14 小时前
把你的 AirPods 当鼠标用,这 3 个黑科技 GitHub 开源项目有趣。
github
kuroomi16 小时前
Git入门
git·kubernetes
daliucheng16 小时前
lazygit 上手:日常 git 操作一篇讲完
git
徐小夕17 小时前
开源Vector-Graph-RAG:向量+图谱双引擎,打破纯向量RAG的效果天花板
前端·vue.js·github
GitHub实测笔记17 小时前
zoxide 本机实测:一万条记查询中 5.7ms0.10 版 import --from
github
codigger18 小时前
大厂git提交规范
git·程序员
挖掘狂人18 小时前
六条分支,一条主干:我的 Git 分支管理心得
git·后端·程序员